Skip to content

Commit

Permalink
Try to push to GitHub Container Registry
Browse files Browse the repository at this point in the history
  • Loading branch information
oshadura committed Feb 16, 2024
1 parent 7e0ddb2 commit 1886dd2
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/gh-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ jobs:
python: 3.11
name: ${{ matrix.image_dir }}-${{ matrix.distro }}-${{ matrix.python }}
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:

- name: Check out code
Expand All @@ -53,13 +56,13 @@ jobs:
username: ${{ secrets.DOCKERHUB_ACCOUNT }}
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}

#- name: Login to GitHub Container Registry
# uses: docker/login-action@v1
# if: github.event_name == 'push'
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
if: github.event_name == 'push'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Generate tags
id: tags
Expand Down

0 comments on commit 1886dd2

Please sign in to comment.