Skip to content

Commit

Permalink
Automatic releases
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus committed Mar 16, 2024
1 parent 40eb8f0 commit 2e533f6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,12 +53,12 @@ jobs:
if: github.event_name != 'pull_request'
run: |
# shellcheck disable=SC2086
RC="$(\grep ${IMAGE}/Dockerfile -e '^FROM' | sed -e 's/^.*://')"
if [[ "${RC}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && ! git show-ref --tags --verify --quiet "refs/tags/v${RC}" ; then
echo "RELEASE=${RC}" >> "${GITHUB_ENV}"
RC="$(\grep ${IMAGE}/Dockerfile -e '^FROM' | \head -n 1 | \sed -e 's/^.*://')"
if [[ "${RC}" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] && ! \git show-ref --tags --verify --quiet "refs/tags/v${RC}" ; then
\echo "RELEASE=${RC}" >> "${GITHUB_ENV}"
fi
- name: Trigger release
if: env.RELEASE == true
if: ${{ env.RELEASE != '' }}
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
Expand Down

0 comments on commit 2e533f6

Please sign in to comment.