Skip to content

Commit

Permalink
docker tag: latest and tag
Browse files Browse the repository at this point in the history
  • Loading branch information
Wayne-KTCSZ committed Sep 13, 2024
1 parent 61aad98 commit 86f8b8f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build and push Docker image
on:
push:
branches: [ develop ]
branches: [ master ]
tags:
- v*

jobs:
build-docker-image:
Expand All @@ -10,6 +12,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Extract Git tag
id: extract_tag
run: echo "GIT_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV

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

0 comments on commit 86f8b8f

Please sign in to comment.