Skip to content

Commit

Permalink
also push if on main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
hillalex committed Aug 2, 2024
1 parent df1c31b commit 644cbc3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,17 @@ concurrency:

jobs:
docker:
name: 🚢 Docker build
name: 🚢 Docker
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4

- name: 🔨 Docker build
- name: 🔨 Build image
run: ./scripts/build

- name: 🔥 Smoke test
run: ./scripts/smoke-test
run: ./scripts/smoke-test

- name: 🚢 Push image
run: ./scripts/push
6 changes: 4 additions & 2 deletions scripts/push
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@ set -ex
HERE=$(realpath "$(dirname $0)")
. $HERE/common

docker push $DOCKER_BRANCH_TAG
docker push $DOCKER_COMMIT_TAG
if [[ $GIT_BRANCH -eq "main" ]]; then
docker push $DOCKER_BRANCH_TAG
docker push $DOCKER_COMMIT_TAG
fi

0 comments on commit 644cbc3

Please sign in to comment.