Skip to content
Open
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
16 changes: 13 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,12 @@ jobs:
id: tagging
run: |
if [ "${GITHUB_REF}" == "refs/heads/main" ]; then
echo "TAG=latest" >> $GITHUB_OUTPUT
VALUE="latest"
else
echo "TAG=preview" >> $GITHUB_OUTPUT
VALUE="preview"
fi
echo "::notice:: $VALUE"
echo "TAG=$VALUE" >> "$GITHUB_OUTPUT"

build-and-test:
name: Build and Test
Expand Down Expand Up @@ -90,7 +92,9 @@ jobs:
build-docker-image-services:
name: Build docker image services
runs-on: ubuntu-latest
needs: build-and-test
needs:
- versioning
- build-and-test

env:
TAG: ${{ needs.versioning.outputs.TAG }}
Expand All @@ -99,6 +103,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Docker Login
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build docker images
working-directory: ./docker
run: |
Expand Down
Loading