1
0
Fork 0
mirror of https://git.sr.ht/~ashkeel/sourcehut-mirror-bridge synced 2024-11-23 21:32:20 +00:00

fixed vars
All checks were successful
Build and push Docker image / build-and-publish (push) Successful in 2m5s

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

View file

@ -12,21 +12,21 @@ jobs:
uses: https://codeberg.org/umglurf/kaniko-action@main uses: https://codeberg.org/umglurf/kaniko-action@main
with: with:
cache: true cache: true
cache_repo: ${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}/cache cache_repo: ${{ vars.REGISTRY_URL }}/${{ github.repository }}/cache
credentials: | credentials: |
${{ vars.DOCKER_REGISTRY }}=${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} ${{ vars.REGISTRY_URL }}=${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }}
destinations: | 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" push: "true"
if: github.ref == 'refs/heads/master' if: github.ref == 'refs/heads/master'
- name: Build ref - name: Build ref
uses: https://codeberg.org/umglurf/kaniko-action@main uses: https://codeberg.org/umglurf/kaniko-action@main
with: with:
cache: true cache: true
cache_repo: ${{ vars.DOCKER_REGISTRY }}/${{ github.repository }}/cache cache_repo: ${{ vars.REGISTRY_URL }}/${{ github.repository }}/cache
credentials: | credentials: |
${{ vars.DOCKER_REGISTRY }}=${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} ${{ vars.REGISTRY_URL }}=${{ secrets.REGISTRY_USERNAME }}:${{ secrets.REGISTRY_TOKEN }}
destinations: | 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" push: "true"
if: github.ref != 'refs/heads/master' if: github.ref != 'refs/heads/master'