fuck this
This commit is contained in:
parent
23ba112f67
commit
8e538df1d8
1 changed files with 56 additions and 16 deletions
72
.github/workflows/docker.yml
vendored
72
.github/workflows/docker.yml
vendored
|
@ -14,6 +14,17 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
# list of Docker images to use as base name for tags
|
||||||
|
images: ghcr.io/janderedev/automod-api
|
||||||
|
# generate Docker tags based on branch and short commit SHA
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=sha
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
|
@ -33,16 +44,26 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: ./api
|
context: ./api
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: |
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
ghcr.io/janderedev/automod-api:latest
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
ghcr.io/janderedev/automod-api:${{ GITHUB_SHA }}
|
|
||||||
|
|
||||||
publish_web:
|
publish_web:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
# list of Docker images to use as base name for tags
|
||||||
|
images: ghcr.io/janderedev/automod-web
|
||||||
|
# generate Docker tags based on branch and short commit SHA
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=sha
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
|
@ -62,16 +83,26 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: ./web
|
context: ./web
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: |
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
ghcr.io/janderedev/automod-web:latest
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
ghcr.io/janderedev/automod-web:${{ GITHUB_SHA }}
|
|
||||||
|
|
||||||
publish_bridge:
|
publish_bridge:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
# list of Docker images to use as base name for tags
|
||||||
|
images: ghcr.io/janderedev/automod-bridge
|
||||||
|
# generate Docker tags based on branch and short commit SHA
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=sha
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
|
@ -91,16 +122,26 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: ./bridge
|
context: ./bridge
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: |
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
ghcr.io/janderedev/automod-bridge:latest
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
ghcr.io/janderedev/automod-bridge:${{ GITHUB_SHA }}
|
|
||||||
|
|
||||||
publish_bot:
|
publish_bot:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
-
|
||||||
|
name: Docker meta
|
||||||
|
id: meta
|
||||||
|
uses: docker/metadata-action@v4
|
||||||
|
with:
|
||||||
|
# list of Docker images to use as base name for tags
|
||||||
|
images: ghcr.io/janderedev/automod-bot
|
||||||
|
# generate Docker tags based on branch and short commit SHA
|
||||||
|
tags: |
|
||||||
|
type=ref,event=branch
|
||||||
|
type=sha
|
||||||
-
|
-
|
||||||
name: Set up QEMU
|
name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
|
@ -120,7 +161,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
context: ./bot
|
context: ./bot
|
||||||
platforms: linux/amd64,linux/arm64
|
platforms: linux/amd64,linux/arm64
|
||||||
push: true
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
tags: |
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
ghcr.io/janderedev/automod-bot:latest
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
ghcr.io/janderedev/automod-bot:${{ GITHUB_SHA }}
|
|
||||||
|
|
Loading…
Reference in a new issue