Skip to content

Commit

Permalink
Build images with tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kentsanggds committed Aug 7, 2023
1 parent 1bf24a5 commit 31cdf06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/ghcr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ on:
push:
branches:
- main
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
schedule:
- cron: '0 3 * * 0'

Expand Down Expand Up @@ -62,4 +64,5 @@ jobs:
VERSION: ${{ matrix.app.version }}
ARCH: ${{ matrix.arch }}
BUILD_BASE: ${{ inputs.buildBaseImages }}
GH_REF: ${{ github.ref_name }}
run: ./docker/build-image.sh
2 changes: 1 addition & 1 deletion docker/build-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if [[ ${BUILD_BASE:-} = "true" ]]; then
DOCKER_TAG="${VERSION}"
fi
else
DOCKER_TAG="${GITHUB_SHA}"
DOCKER_TAG="${GH_REF}"
fi

if [[ -n ${DOCKER_TAG:-} ]]; then
Expand Down

0 comments on commit 31cdf06

Please sign in to comment.