diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 96f8d19..b851836 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -27,17 +27,19 @@ jobs: uses: actions/checkout@v4 - name: Log in to the Container registry - uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1 + uses: docker/login-action@v3 with: registry: ${{ env.REGISTRY }} username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Extract metadata (tags, labels) for Docker + - name: Docker meta id: meta - uses: docker/metadata-action@9ec57ed1fcdbf14dcef7dfbe97b2010124a938b7 + uses: docker/metadata-action@v5 with: - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} + images: + metno/sedr + ghcr.io/metno/sedr # generate Docker tags based on the following events/attributes tags: | type=schedule @@ -57,11 +59,11 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} - - name: Retag and push Docker image with additional tags - run: | - docker pull ${{ steps.meta.outputs.tags }} - docker tag ${{ steps.meta.outputs.tags }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + # - name: Retag and push Docker image with additional tags + # run: | + # docker pull ${{ steps.meta.outputs.tags }} + # docker tag ${{ steps.meta.outputs.tags }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest + # docker push ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest - name: Generate artifact attestation uses: actions/attest-build-provenance@v1