Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct login to ghcr.io #241

Merged
merged 1 commit into from
Sep 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading