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