Skip to content

Commit

Permalink
ci: 👷 replace special chars in docker image tag
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashbrnrd committed Oct 7, 2024
1 parent a6cfbe3 commit 9898f12
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,18 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/dnum-mi/basegun/basegun-backend
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./backend
push: true
tags: ghcr.io/dnum-mi/basegun/basegun-backend:${{ github.head_ref || github.ref_name }}
pull: true
tags: ${{ steps.meta.outputs.tags }}

build-frontend:
name: Build Frontend
Expand All @@ -53,19 +59,25 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/dnum-mi/basegun/basegun-frontend
- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
context: ./frontend
push: true
tags: ghcr.io/dnum-mi/basegun/basegun-frontend:${{ github.head_ref || github.ref_name }}
pull: true
tags: ${{ steps.meta.outputs.tags }}

test-backend:
name: Test Backend
needs: build-backend
runs-on: ubuntu-latest
container:
image: ghcr.io/dnum-mi/basegun/basegun-backend:${{ github.head_ref || github.ref_name }}
image: ${{ needs.build-backend.outputs.tags[0] }}
env:
AWS_REGION: gra
AWS_DEFAULT_REGION: gra
Expand All @@ -80,6 +92,7 @@ jobs:
OIDC_JWKS_KID: cc413527-173f-5a05-976e-9c52b1d7b431
OIDC_CLIENT_ID: basegun
steps:
- run: echo ${{ needs.build-backend.outputs.tags }}
- run: cd /app && pytest
services:
mailpit:
Expand Down

0 comments on commit 9898f12

Please sign in to comment.