From ceb13b34deecf1554e4084785b459594b84b6221 Mon Sep 17 00:00:00 2001 From: Mark Street <22226349+mkst@users.noreply.github.com> Date: Thu, 14 Sep 2023 15:12:28 +0100 Subject: [PATCH] Use correct token for docker deployment (#45) * Use correct token for docker deployment * Update link to gc_wii compilers * Update deps in ci.yml too --- .github/workflows/ci.yml | 4 ++-- .github/workflows/docker.yaml | 13 +++++++------ 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c61303b..e372874 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,7 +5,7 @@ jobs: name: Build and test runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Install dependencies run: | @@ -25,7 +25,7 @@ jobs: file test.o - name: Upload build - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3 with: name: wibo path: build/wibo diff --git a/.github/workflows/docker.yaml b/.github/workflows/docker.yaml index bbbeff3..33c5824 100644 --- a/.github/workflows/docker.yaml +++ b/.github/workflows/docker.yaml @@ -10,6 +10,7 @@ jobs: runs-on: ubuntu-latest permissions: contents: read + packages: write steps: - name: Docker meta id: meta @@ -18,24 +19,24 @@ jobs: images: ghcr.io/decompals/wibo - name: Check out the repo - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Log in to GitHub Docker Registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io - username: mkst - password: ${{ secrets.GHCR_PAT }} + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Build and push to Github registry (latest) - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: push: true tags: ghcr.io/decompals/wibo:latest if: ${{ ! startsWith(github.ref, 'refs/tags/') }} - name: Build and push to Github registry (versioned) - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: push: true tags: ${{ steps.meta.outputs.tags }}