Skip to content
This repository was archived by the owner on Mar 26, 2025. It is now read-only.

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