Skip to content

Commit

Permalink
Update build.yml and add tag latest to new builds
Browse files Browse the repository at this point in the history
  • Loading branch information
Guilamb committed Jul 18, 2024
1 parent c34959b commit c0ba71f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set env
run: |
Expand All @@ -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 }}
Expand All @@ -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

0 comments on commit c0ba71f

Please sign in to comment.