fixed vars
Build and push Docker image / build-and-publish (push) Successful in 2m5s Details

This commit is contained in:
Ash Keel 2024-04-27 20:03:55 +02:00
parent 36b93b0fce
commit 4f0035629d
No known key found for this signature in database
GPG Key ID: 53A9E9A6035DD109
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: ${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}/cache
cache_repo: ${{ vars.REGISTRY_URL }}/${{ github.repository }}/cache
credentials: |
${{ vars.DOCKER_REGISTRY }}=${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }}
${{ vars.REGISTRY_URL }}=${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }}
destinations: |
${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}:latest ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }}
${{ vars.REGISTRY_URL }}/${{ github.repository }}:latest ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }}
push: "true"
if: github.ref == 'refs/heads/master'
- name: Build ref
uses: https://codeberg.org/umglurf/kaniko-action@main
with:
cache: true
cache_repo: ${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}/cache
cache_repo: ${{ vars.REGISTRY_URL }}/${{ github.repository }}/cache
credentials: |
${{ vars.DOCKER_REGISTRY }}=${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }}
${{ vars.REGISTRY_URL }}=${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }}
destinations: |
${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}:${{ github.ref_name }} ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }}
${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.ref_name }} ${{ vars.REGISTRY_URL }}/${{ github.repository }}:${{ github.sha }}
push: "true"
if: github.ref != 'refs/heads/master'