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