Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Corrected the Docker image tag for latest to exclude specific keywords. #141

Merged
merged 1 commit into from
Jun 29, 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
19 changes: 17 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,14 +153,29 @@ jobs:
id: git_tag
run: echo "TAG=$(git tag --points-at HEAD)" >> $GITHUB_ENV

- name: Build and push
- name: Build docker image and push
uses: docker/build-push-action@v5
with:
file: docker/greenmask/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.docker-registry }}:${{ env.TAG }},${{ env.docker-registry }}:latest
tags: ${{ env.docker-registry }}:${{ env.TAG }}

- name: Build docker imaget with latest tag and push
uses: docker/build-push-action@v5
if: |
! contains(github.ref, 'rc') &&
! contains(github.ref, 'dev') &&
! contains(github.ref, 'pre') &&
! contains(github.ref, 'beta') &&
! contains(github.ref, 'b')
with:
file: docker/greenmask/Dockerfile
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.docker-registry }}:latest

deploy-docs:
runs-on: self-hosted
Expand Down