More copy pasta
This commit is contained in:
@@ -18,7 +18,7 @@ jobs:
|
|||||||
id: github_repository_to_lowercase
|
id: github_repository_to_lowercase
|
||||||
run: |
|
run: |
|
||||||
# Grab the value (you can also use `${{ github.ref }}`, `${{ secrets.MY_SECRET }}`, etc.)
|
# Grab the value (you can also use `${{ github.ref }}`, `${{ secrets.MY_SECRET }}`, etc.)
|
||||||
raw_value="${{ env.MY_VAR }}"
|
raw_value="${{ github.repository }}"
|
||||||
# Convert to lower case
|
# Convert to lower case
|
||||||
lower_value=$(echo "$raw_value" | tr '[:upper:]' '[:lower:]')
|
lower_value=$(echo "$raw_value" | tr '[:upper:]' '[:lower:]')
|
||||||
# Export it to the workflow environment
|
# Export it to the workflow environment
|
||||||
@@ -78,9 +78,9 @@ jobs:
|
|||||||
file: Dockerfile
|
file: Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ vars.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}
|
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}
|
||||||
${{ vars.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}
|
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}
|
||||||
${{ vars.REGISTRY_HOST }}/${{ github.repository }}:latest
|
${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}: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 "- ${{ vars.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}"
|
echo "- ${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }}"
|
||||||
echo "- ${{ vars.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}"
|
echo "- ${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }}"
|
||||||
echo "- ${{ vars.REGISTRY_HOST }}/${{ github.repository }}:latest"
|
echo "- ${{ vars.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:latest"
|
||||||
@@ -16,7 +16,7 @@ jobs:
|
|||||||
id: github_repository_to_lowercase
|
id: github_repository_to_lowercase
|
||||||
run: |
|
run: |
|
||||||
# Grab the value (you can also use `${{ github.ref }}`, `${{ secrets.MY_SECRET }}`, etc.)
|
# Grab the value (you can also use `${{ github.ref }}`, `${{ secrets.MY_SECRET }}`, etc.)
|
||||||
raw_value="${{ env.MY_VAR }}"
|
raw_value="${{ github.repository }}"
|
||||||
# Convert to lower case
|
# Convert to lower case
|
||||||
lower_value=$(echo "$raw_value" | tr '[:upper:]' '[:lower:]')
|
lower_value=$(echo "$raw_value" | tr '[:upper:]' '[:lower:]')
|
||||||
# Export it to the workflow environment
|
# Export it to the workflow environment
|
||||||
|
|||||||
Reference in New Issue
Block a user