Skip to content

Commit

Permalink
Correct login to ghcr.io (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
koropets authored Sep 30, 2024
1 parent a6c5b0a commit c41d57f
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,8 @@ jobs:
name: Push docker images
needs: build-docker
runs-on: ubuntu-latest
permissions:
packages: write
env:
IMAGE_LICENSE: AGPL-3.0
IMAGE_HOME_URL: https://github.com/equinor/gordo-controller
Expand All @@ -203,21 +205,13 @@ jobs:
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to production CR
uses: docker/login-action@v2
if: ${{ steps.prep.outputs.login_prod_cr }}
with:
registry: ${{ env.DOCKER_PROD_REGISTRY }}
username: ${{ secrets.DOCKER_PROD_USERNAME }}
password: ${{ secrets.DOCKER_PROD_TOKEN }}

- name: Login to CR
uses: docker/login-action@v2
if: ${{ steps.prep.outputs.login_cr }}
with:
registry: ${{ env.DOCKER_REGISTRY }}
username: ${{ secrets.DOCKER_GITHUB_USER }}
password: ${{ secrets.DOCKER_GITHUB_PASSWORD }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v3
Expand Down

0 comments on commit c41d57f

Please sign in to comment.