Skip to content

Commit

Permalink
Merge pull request #141 from GreenmaskIO/bugfix/build-docker-images
Browse files Browse the repository at this point in the history
  • Loading branch information
wwoytenko committed Jun 29, 2024
2 parents 4b7da0a + e8fdcaf commit a4c1f97
Showing 1 changed file with 17 additions and 2 deletions.
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

0 comments on commit a4c1f97

Please sign in to comment.