Finalized Workflow to upload new docker image on push
All checks were successful
Publish to Package Regsitry / deploy (push) Successful in 3m58s
All checks were successful
Publish to Package Regsitry / deploy (push) Successful in 3m58s
This commit is contained in:
@ -6,7 +6,6 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
env:
|
env:
|
||||||
REGISTRY_URL: gitea.jono-rams.work
|
|
||||||
REGISTRY_TOKEN: ${{ secrets.GLOBAL_PACKAGE_TOKEN }}
|
REGISTRY_TOKEN: ${{ secrets.GLOBAL_PACKAGE_TOKEN }}
|
||||||
REGISTRY_USER: ${{ vars.GLOBAL_ACCOUNT_EMAIL }}
|
REGISTRY_USER: ${{ vars.GLOBAL_ACCOUNT_EMAIL }}
|
||||||
|
|
||||||
@ -21,7 +20,7 @@ jobs:
|
|||||||
- name: Login to Gitea Package Regsitry
|
- name: Login to Gitea Package Regsitry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY_URL }}
|
registry: ${{ vars.REGISTRY_URL }}
|
||||||
username: ${{ env.REGISTRY_USER }}
|
username: ${{ env.REGISTRY_USER }}
|
||||||
password: ${{ env.REGISTRY_TOKEN }}
|
password: ${{ env.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
@ -35,10 +34,12 @@ jobs:
|
|||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: |
|
tags: |
|
||||||
${{ env.REGISTRY_URL }}/${{ gitea.repository }}:latest
|
${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:latest
|
||||||
${{ env.REGISTRY_URL }}/${{ gitea.repository }}:${{ gitea.sha }}
|
${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:${{ gitea.sha }}
|
||||||
|
cache-from: type=registry,ref=${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:buildcache
|
||||||
|
cache-to: type=registry,ref=${{ vars.REGISTRY_URL }}/${{ gitea.repository }}:buildcache,mode=max
|
||||||
|
|
||||||
- name: Logout from Gitea Package Regsitry
|
- name: Logout from Gitea Package Regsitry
|
||||||
if: always()
|
if: always()
|
||||||
run: docker logout ${env.REGISTRY_URL}
|
run: docker logout ${{vars.REGISTRY_URL}}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user