Use ENV for tags instead of SECRETS
This commit is contained in:
@@ -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"
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user