github ci arm builds

Co-authored-by: Martin Löffler <me@fatalerrorcoded.eu>
This commit is contained in:
Jan 2022-05-21 23:57:18 +02:00
parent b52fdcea6b
commit 6d027f41fd

View file

@ -11,6 +11,9 @@ on:
jobs: jobs:
publish_api: publish_api:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
architecture: [linux/amd64, linux/arm64]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -32,11 +35,15 @@ jobs:
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
context: ./api context: ./api
platforms: ${{ matrix.architecture }}
push: true push: true
tags: ghcr.io/janderedev/automod:api tags: ghcr.io/janderedev/automod:api-${{ matrix.architecture }}
publish_web: publish_web:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
architecture: [linux/amd64, linux/arm64]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -58,11 +65,15 @@ jobs:
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
context: ./web context: ./web
platforms: ${{ matrix.architecture }}
push: true push: true
tags: ghcr.io/janderedev/automod:web tags: ghcr.io/janderedev/automod:web-${{ matrix.architecture }}
publish_bridge: publish_bridge:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
architecture: [linux/amd64, linux/arm64]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -84,11 +95,15 @@ jobs:
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
context: ./bridge context: ./bridge
platforms: ${{ matrix.architecture }}
push: true push: true
tags: ghcr.io/janderedev/automod:bridge tags: ghcr.io/janderedev/automod:bridge-${{ matrix.architecture }}
publish_bot: publish_bot:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
architecture: [linux/amd64, linux/arm64]
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -110,5 +125,6 @@ jobs:
uses: docker/build-push-action@v3 uses: docker/build-push-action@v3
with: with:
context: ./bot context: ./bot
platforms: ${{ matrix.architecture }}
push: true push: true
tags: ghcr.io/janderedev/automod:bot tags: ghcr.io/janderedev/automod:bot-${{ matrix.architecture }}