Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
CI(actions): Fix stable meta for webhook support
Browse files Browse the repository at this point in the history
  • Loading branch information
titom73 committed Aug 28, 2021
1 parent c6b2ea1 commit 937f376
Showing 1 changed file with 10 additions and 13 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/docker-stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,23 @@
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Docker meta for TAG
id: meta
uses: docker/metadata-action@v3
if: ${{ github.event.action != 'refresh' }}
with:
images: ${{ secrets.DOCKER_IMAGE }}
tags: |
type=match,pattern=v(.*),group=1, enable=true,priority=600,prefix=${{matrix.python_version}}-v,suffix=,value=
fetch-depth: 0

- name: Docker meta for TAG (refresh image)
- name: Collect latest git TAG for refresh
id: get_latest_tag
run: |
echo "LATEST_TAG= 0" >> $GITHUB_ENV
echo "LATEST_TAG= $(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- name: Docker meta for TAG
id: meta
uses: docker/metadata-action@v3
if: ${{ github.event.action == 'refresh' }}
env:
LATEST_TAG: $(git describe --tags --abbrev=0)
with:
images: ${{ secrets.DOCKER_IMAGE }}
tags: |
raw=enable=true,priority=600,prefix=${{matrix.python_version}}-v,suffix=,value=${LATEST_TAG}
type=match,pattern=v(.*),group=1, enable=true,priority=200,prefix=${{matrix.python_version}}-v,suffix=,value=
raw=enable=true,priority=600,prefix=${{matrix.python_version}}-,suffix=,value=${{env.LATEST_TAG}}
- name: Login to DockerHub
uses: docker/login-action@v1
Expand Down

0 comments on commit 937f376

Please sign in to comment.