Skip to content

Commit

Permalink
docker-tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne-KTCSZ committed Sep 13, 2024
1 parent 3a3205a commit 4e1addd
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,11 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-tags: true

- name: Extract Git tag
id: extract_tag
run: echo "GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
- id: docker-tag
uses: yuya-takeyama/docker-tag-from-github-ref-action@v1
with:
remove-version-tag-prefix: false

- name: Log into registry
uses: docker/login-action@v3
Expand All @@ -30,4 +29,4 @@ jobs:
with:
context: .
push: true
tags: zkeasoft/zkeacms:latest,zkeasoft/zkeacms:${{ env.GIT_TAG }}
tags: zkeasoft/zkeacms:${{ steps.docker-tag.outputs.tag }}

0 comments on commit 4e1addd

Please sign in to comment.