Skip to content

Commit

Permalink
Merge pull request #112 from m-ildefons/release-workflow-token-auth
Browse files Browse the repository at this point in the history
ci: release workflow: use github token
  • Loading branch information
jhmarina authored Sep 15, 2022
2 parents 4eb157f + 8fcde78 commit 8d3d0ad
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,12 +153,12 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Dockerhub Login
- name: GHCR Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Download Radogw Artifacts
uses: actions/download-artifact@v3
Expand All @@ -173,7 +173,7 @@ jobs:
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/${{ secrets.GHCR_USERNAME }}/s3gw:${{ needs.set-git-refs.outputs.github-ref-name }}
tags: ghcr.io/${{ github.repository_owner }}/s3gw:${{ needs.set-git-refs.outputs.github-ref-name }}
file: tools/build/Dockerfile.build-container
context: ceph/build

Expand All @@ -196,18 +196,18 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Dockerhub Login
- name: GHCR Login
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_TOKEN }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Container
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/${{ secrets.GHCR_USERNAME }}/s3gw-ui:${{ needs.set-git-refs.outputs.github-ref-name }}
tags: ghcr.io/${{ github.repository_owner }}/s3gw-ui:${{ needs.set-git-refs.outputs.github-ref-name }}
file: ui/Dockerfile
context: ui

Expand Down

0 comments on commit 8d3d0ad

Please sign in to comment.