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

Commit

Permalink
ci: use tag name in current brunch
Browse files Browse the repository at this point in the history
  • Loading branch information
AH-dark committed Sep 10, 2024
1 parent 6265d54 commit e19c193
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/auto-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- cron: "0 0 * * *"

jobs:
build:
fetch:
runs-on: ubuntu-latest

permissions:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ jobs:
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-${{ matrix.context }}

- name: Get Tag Name
id: get-tag-name
run: echo "tag=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT

- name: Build and push Docker image (${{ matrix.context }})
id: build-and-push
uses: docker/build-push-action@v5
Expand All @@ -56,3 +60,5 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
build-args: |
WORDPRESS_VERSION=${{ steps.get-tag-name.outputs.tag }}

0 comments on commit e19c193

Please sign in to comment.