From c0ba71fe97b13d0ef73fd2d09f017475ca9c961d Mon Sep 17 00:00:00 2001 From: guilhane Date: Thu, 18 Jul 2024 12:04:20 +0200 Subject: [PATCH] Update build.yml and add tag latest to new builds --- .github/workflows/build.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 133b89a..d88e8ac 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -15,7 +15,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set env run: | @@ -29,9 +29,11 @@ jobs: - name: build docker image run: | docker build -t ghcr.io/orange-cloudfoundry/headlamp-plugin:${{ env.RELEASE_VERSION }} ./ + docker tag ghcr.io/orange-cloudfoundry/headlamp-plugin:${{ env.RELEASE_VERSION }} ghcr.io/orange-cloudfoundry/headlamp-plugin:latest + - name: login to GitHub Container Registry - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} @@ -40,3 +42,4 @@ jobs: - name: push docker image run: | docker push ghcr.io/orange-cloudfoundry/headlamp-plugin:${{ env.RELEASE_VERSION }} + docker push ghcr.io/orange-cloudfoundry/headlamp-plugin:latest