This commit is contained in:
@@ -95,7 +95,6 @@ jobs:
|
|||||||
password: ${{ secrets.ACCESS_TOKEN }}
|
password: ${{ secrets.ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Prepare Docker Metadata
|
- name: Prepare Docker Metadata
|
||||||
if: gitea.ref == 'refs/heads/main'
|
|
||||||
id: meta
|
id: meta
|
||||||
run: |
|
run: |
|
||||||
# Lowercase Repository
|
# Lowercase Repository
|
||||||
@@ -108,11 +107,10 @@ jobs:
|
|||||||
echo "version=$VERSION_LOWER" >> $GITHUB_OUTPUT
|
echo "version=$VERSION_LOWER" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Build and Push Docker Image
|
- name: Build and Push Docker Image
|
||||||
if: gitea.ref == 'refs/heads/main'
|
|
||||||
uses: docker/build-push-action@v4
|
uses: docker/build-push-action@v4
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
push: true
|
push: ${{ github.ref_name == 'main' }}
|
||||||
tags: |
|
tags: |
|
||||||
vps.demonkernel.io.vn/${{ steps.meta.outputs.repo }}:latest
|
vps.demonkernel.io.vn/${{ steps.meta.outputs.repo }}:latest
|
||||||
vps.demonkernel.io.vn/${{ steps.meta.outputs.repo }}:${{ steps.meta.outputs.version }}
|
vps.demonkernel.io.vn/${{ steps.meta.outputs.repo }}:${{ steps.meta.outputs.version }}
|
||||||
|
|||||||
Reference in New Issue
Block a user