diff --git a/.gitea/workflows/build-and-push.yaml b/.gitea/workflows/build-and-push.yaml index da3a3aa..418f342 100644 --- a/.gitea/workflows/build-and-push.yaml +++ b/.gitea/workflows/build-and-push.yaml @@ -61,9 +61,9 @@ jobs: # do not push yet push: false tags: | - ${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }} - ${{ secrets.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 }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }} + ${{ env.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }} + ${{ env.REGISTRY_HOST }}/${{ github.repositorysteps.github_repository_to_lowercase.outputs.lowercase }}:latest build-args: | # Add any build args here # ARG_NAME=VALUE @@ -78,9 +78,9 @@ jobs: file: Dockerfile push: true tags: | - ${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }} - ${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }} - ${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:latest + ${{ env.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }} + ${{ env.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }} + ${{ env.REGISTRY_HOST }}/${{ github.repository }}:latest # ------------------------------------------------------------------ # 6. (Optional) Clean up local Docker cache @@ -95,6 +95,6 @@ jobs: - name: Show pushed image tags run: | echo "Pushed image tags:" - echo "- ${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}" - echo "- ${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}" - echo "- ${{ secrets.REGISTRY_HOST }}/${{ github.repository }}:latest" \ No newline at end of file + echo "- ${{ env.REGISTRY_HOST }}/${{ github.repository }}:${{ github.sha }}" + echo "- ${{ env.REGISTRY_HOST }}/${{ github.repository }}:${{ github.ref_name }}" + echo "- ${{ env.REGISTRY_HOST }}/${{ github.repository }}:latest" \ No newline at end of file diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index cfe39ba..bd2185b 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -33,9 +33,9 @@ jobs: # do not push yet push: false tags: | - ${{ secrets.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.sha }} - ${{ secrets.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 }}:${{ github.sha }} + ${{ env.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:${{ github.ref_name }} + ${{ env.REGISTRY_HOST }}/${{ steps.github_repository_to_lowercase.outputs.lowercase }}:latest build-args: | # Add any build args here # ARG_NAME=VALUE \ No newline at end of file