lets try again
Build and push Docker image / build-and-publish (push) Successful in 43s Details

This commit is contained in:
Hamcha 2024-04-17 01:12:48 +02:00
parent 7052fe8f77
commit d355e7bc09
Signed by: hamcha
GPG Key ID: 1669C533B8CF6D89
1 changed files with 6 additions and 6 deletions

View File

@ -12,21 +12,21 @@ jobs:
uses: https://codeberg.org/umglurf/kaniko-action@main
with:
cache: true
cache_repo: ${{ github.server_url }}/${{ github.repository }}/cache
cache_repo: ${{ vars.REGISTRY_URL }}/${{ github.repository }}/cache
credentials: |
${{ github.server_url }}=${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }}
${{ vars.REGISTRY_URL }}=${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }}
destinations: |
${{ github.server_url }}/${{ github.repository }}:latest
${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest
push: 'true'
if: github.ref == 'refs/heads/master'
- name: Build ref
uses: https://codeberg.org/umglurf/kaniko-action@main
with:
cache: true
cache_repo: ${{ github.server_url }}/${{ github.repository }}/cache
cache_repo: ${{ vars.REGISTRY_URL }}/${{ github.repository }}/cache
credentials: |
${{ github.server_url }}=${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }}
${{ vars.REGISTRY_URL }}=${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }}
destinations: |
${{ github.server_url }}/${{ github.repository }}:${{ github.ref_name }}
${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.ref_name }}
push: 'true'
if: github.ref != 'refs/heads/master'