Test local image push

This commit is contained in:
Pal Kerecsenyi 2024-01-14 21:56:00 +00:00
parent a202363e6e
commit 7f50170c44
Signed by: palk
GPG Key ID: 6891661E25394C2C

View File

@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- run: apk add skopeo - run: apk add skopeo
name: Instal authentication helper name: Instal authentication helper
- run: skopeo login --compat-auth-file /kaniko/.docker/config.json -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} gitea.palk.me - run: skopeo login --compat-auth-file /kaniko/.docker/config.json -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} gitea-http.gitea.svc.cluster:3000
name: Login to container registry name: Login to container registry
- run: /kaniko/executor --context "${{ github.workspace }}" --dockerfile "${{ github.workspace }}/Dockerfile" --destination "gitea-http.gitea.svc.cluster.local:3000/${{ github.repository }}:${{ github.sha }}" --cache=true - run: /kaniko/executor --context "${{ github.workspace }}" --dockerfile "${{ github.workspace }}/Dockerfile" --destination "gitea-http.gitea.svc.cluster.local:3000/${{ github.repository }}:${{ github.sha }}" --cache=true
name: Build and publish container name: Build and publish container