Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
fix(infra): not matching tag regex
Browse files Browse the repository at this point in the history
  • Loading branch information
juligasa committed Oct 18, 2023
1 parent c87ced1 commit c2cf8c7
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/generate-docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,14 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Check tag format
id: check-tag
uses: actions-ecosystem/action-regex-match@v2
with:
text: ${{ github.ref }}
regex: 'refs/tags/[0-9]{4}\.[0-9]+\.[0-9]+$'

- name: Build and push edge mintter-site
uses: docker/build-push-action@v4
with:
push: true
file: backend/cmd/mintter-site/Dockerfile
tags: mintter/mintter-site:master
- name: Build and push stable mintter-site
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag' && steps.check-tag.outputs.match
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag'
uses: docker/build-push-action@v4
with:
push: true
Expand All @@ -56,7 +49,7 @@ jobs:
file: backend/cmd/mintterd/Dockerfile
tags: mintter/mintterd:master
- name: Build and push stable mintterd
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag' && steps.check-tag.outputs.match
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag'
uses: docker/build-push-action@v4
with:
push: true
Expand All @@ -70,7 +63,7 @@ jobs:
file: frontend/apps/site/Dockerfile
tags: mintter/sitegw:master
- name: Build and push stable nextjs
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag' && steps.check-tag.outputs.match
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag'
uses: docker/build-push-action@v4
with:
push: true
Expand All @@ -84,7 +77,7 @@ jobs:
file: backend/cmd/monitord/Dockerfile
tags: mintter/monitord:master
- name: Build and push stable monitord
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag' && steps.check-tag.outputs.match
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag'
uses: docker/build-push-action@v4
with:
push: true
Expand All @@ -98,7 +91,7 @@ jobs:
file: backend/cmd/relayd/Dockerfile
tags: mintter/relayd:master
- name: Build and push stable relay
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag' && steps.check-tag.outputs.match
if: startsWith(github.ref, 'refs/tags/') && github.event.ref_type == 'tag'
uses: docker/build-push-action@v4
with:
push: true
Expand Down

0 comments on commit c2cf8c7

Please sign in to comment.