Use ENV for tags instead of SECRETS
Build & Push Docker image / build-and-push (push) Failing after 1m54s
ci / build_linux (push) Failing after 1m43s

This commit is contained in:
2025-11-07 21:46:04 +10:30
parent a9184acd23
commit 6cb78c91fa
2 changed files with 12 additions and 12 deletions
+9 -9
View File
@@ -61,9 +61,9 @@ jobs:
# do not push yet # do not push yet
push: false push: false
tags: | tags: |
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }} ${{ env.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }} ${{ env.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}
${{ secrets.REGISTRY_HOST }}/${{ github.repositorysteps.github_repository_to_lowercase.outputs.lowercase }}:latest ${{ env.REGISTRY_HOST }}/${{ github.repositorysteps.github_repository_to_lowercase.outputs.lowercase }}:latest
build-args: | build-args: |
# Add any build args here # Add any build args here
# ARG_NAME=VALUE # ARG_NAME=VALUE
@@ -78,9 +78,9 @@ jobs:
file: Dockerfile file: Dockerfile
push: true push: true
tags: | tags: |
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }} ${{ env.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }} ${{ env.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}
${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:latest ${{ env.REGISTRY_HOST }}/${{ github.repository }}:latest
# ------------------------------------------------------------------ # ------------------------------------------------------------------
# 6. (Optional) Clean up local Docker cache # 6. (Optional) Clean up local Docker cache
@@ -95,6 +95,6 @@ jobs:
- name: Show pushed image tags - name: Show pushed image tags
run: | run: |
echo "Pushed image tags:" echo "Pushed image tags:"
echo "- ${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}" echo "- ${{ env.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}"
echo "- ${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}" echo "- ${{ env.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}"
echo "- ${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:latest" echo "- ${{ env.REGISTRY_HOST }}/${{ github.repository }}:latest"
+3 -3
View File
@@ -33,9 +33,9 @@ jobs:
# do not push yet # do not push yet
push: false push: false
tags: | tags: |
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }} ${{ env.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }} ${{ env.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}
${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:latest ${{ env.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:latest
build-args: | build-args: |
# Add any build args here # Add any build args here
# ARG_NAME=VALUE # ARG_NAME=VALUE