Skip to content

Commit

Permalink
Use correct token for docker deployment (#45)
Browse files Browse the repository at this point in the history
* Use correct token for docker deployment

* Update link to gc_wii compilers

* Update deps in ci.yml too
  • Loading branch information
mkst authored Sep 14, 2023
1 parent 6a42066 commit ceb13b3
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ jobs:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Docker meta
id: meta
Expand All @@ -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 }}
Expand Down

0 comments on commit ceb13b3

Please sign in to comment.