Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
AirportR committed Feb 13, 2024
2 parents 0662916 + 3695223 commit 3d2f7ef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
IMG=fulltclash
echo "IMG=${IMG}" >> $GITHUB_ENV
echo "IMAGE=${{ secrets.DOCKERHUB_USERNAME }}/${IMG}" >> $GITHUB_ENV
- name: Get version
id: get_version
run: echo "version=$(git describe --tags --always)" >> $GITHUB_OUTPUT
- name: Build Latest Image
if: ${{ github.ref_name == 'dev' }}
uses: docker/build-push-action@v5
Expand All @@ -42,6 +45,7 @@ jobs:
tags: |
${{ env.IMAGE }}:latest
${{ env.IMAGE }}:debian-${{ github.ref_name }}
${{ env.IMAGE }}:${{ steps.get_version.outputs.version }}
build-args: |
GIT_Branch=${{ github.ref_name }}
- name: Build Debian Image
Expand All @@ -54,6 +58,7 @@ jobs:
push: true
tags: |
${{ env.IMAGE }}:debian-${{ github.ref_name }}
${{ env.IMAGE }}:${{ steps.get_version.outputs.version }}
- name: Build Alpine Image
uses: docker/build-push-action@v5
with:
Expand All @@ -63,5 +68,6 @@ jobs:
push: true
tags: |
${{ env.IMAGE }}:alpine-${{ github.ref_name }}
${{ env.IMAGE }}:${{ steps.get_version.outputs.version }}
build-args: |
GIT_Branch=${{ github.ref_name }}

0 comments on commit 3d2f7ef

Please sign in to comment.