fuck this

This commit is contained in:
Jan 2022-05-22 00:33:48 +02:00
parent 23ba112f67
commit 8e538df1d8

View file

@ -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 }}