From 1e6d183aebd5cdd7453a9223ec66cdc8a61b44ca Mon Sep 17 00:00:00 2001 From: Erik Jaegervall Date: Mon, 20 Nov 2023 14:45:48 +0100 Subject: [PATCH] Fix login problems --- .github/workflows/dev_container_build.yml | 4 ++-- .github/workflows/hvac_service.yml | 9 ++++++++- .github/workflows/mock_service.yml | 9 ++++++++- .github/workflows/seat_service.yml | 9 ++++++++- 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dev_container_build.yml b/.github/workflows/dev_container_build.yml index 8e429a1..928a219 100644 --- a/.github/workflows/dev_container_build.yml +++ b/.github/workflows/dev_container_build.yml @@ -67,7 +67,7 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: # list of Docker images to use as base name for tags images: | @@ -82,7 +82,7 @@ jobs: - name: Log in to the Container registry if: needs.check_ghcr_push.outputs.push == 'true' - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.repository_owner }} diff --git a/.github/workflows/hvac_service.yml b/.github/workflows/hvac_service.yml index a4004a5..c182620 100644 --- a/.github/workflows/hvac_service.yml +++ b/.github/workflows/hvac_service.yml @@ -65,7 +65,7 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: # list of Docker images to use as base name for tags images: | @@ -78,6 +78,13 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} + - name: Log in to the Container registry + if: needs.check_ghcr_push.outputs.push == 'true' + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/mock_service.yml b/.github/workflows/mock_service.yml index 50fafcc..06fa046 100644 --- a/.github/workflows/mock_service.yml +++ b/.github/workflows/mock_service.yml @@ -65,7 +65,7 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: # list of Docker images to use as base name for tags images: | @@ -78,6 +78,13 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} + - name: Log in to the Container registry + if: needs.check_ghcr_push.outputs.push == 'true' + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/seat_service.yml b/.github/workflows/seat_service.yml index caf9655..2a4de3c 100644 --- a/.github/workflows/seat_service.yml +++ b/.github/workflows/seat_service.yml @@ -78,7 +78,7 @@ jobs: - name: Docker meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: # list of Docker images to use as base name for tags images: | @@ -91,6 +91,13 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}} + - name: Log in to the Container registry + if: needs.check_ghcr_push.outputs.push == 'true' + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3