Skip to content

Commit

Permalink
Use path from repo root for build-and-push
Browse files Browse the repository at this point in the history
In the end, this script is only mean for github actions anyway.
  • Loading branch information
PrinsINT committed Jun 4, 2024
1 parent d8c657a commit 009f049
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
run: cd scripts && ./build-and-push-all.sh
run: ./scripts/build-and-push-all.sh
env:
VERSION_LABEL: dev
7 changes: 4 additions & 3 deletions .github/workflows/publish-prod.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: Prod images to docker

on:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -28,6 +29,6 @@ jobs:
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
run: cd scripts && ./build-and-push-all.sh
run: ./scripts/build-and-push-all.sh
env:
VERSION_LABEL: latest
2 changes: 1 addition & 1 deletion scripts/build-and-push-all.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Set the default label
: ${VERSION_LABEL:=dev}

./build-all.sh
./scripts/build-all.sh

echo "Will push galahad images with version <$VERSION_LABEL>. Set VERSION_LABEL to override this."

Expand Down

0 comments on commit 009f049

Please sign in to comment.