This commit is contained in:
Emile Nijssen 2023-12-17 22:31:58 +01:00
parent f06ca2663b
commit 0bdb43c2f5

View File

@ -10,8 +10,11 @@ jobs:
deploy: deploy:
name: Build & Deploy name: Build & Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v4
with: with:
ref: production ref: production
@ -22,7 +25,7 @@ jobs:
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v3 uses: docker/login-action@v3
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.actor }} username: ${{ github.actor }}
@ -32,7 +35,7 @@ jobs:
run: echo RELEASE=$(cat ./src/package.json | jq -r .release) >> $GITHUB_ENV run: echo RELEASE=$(cat ./src/package.json | jq -r .release) >> $GITHUB_ENV
- name: Build & Publish Docker Image - name: Build & Publish Docker Image
uses: docker/build-push-action@v2 uses: docker/build-push-action@v5
with: with:
push: true push: true
platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8 platforms: linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64/v8