Try again for local container operation

This commit is contained in:
Pal Kerecsenyi 2024-01-16 21:31:12 +00:00
parent 5a2ceb3616
commit d480828cee
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 }} --tls-verify=false gitea-http.gitea.svc.cluster.local:3000
name: Login to container registry name: Login to container registry
- run: /kaniko/executor --context "${{ github.workspace }}" --dockerfile "${{ github.workspace }}/Dockerfile" --destination "gitea.palk.me/${{ github.repository }}:${{ github.sha }}" --cache=true - run: /kaniko/executor --context "${{ github.workspace }}" --dockerfile "${{ github.workspace }}/Dockerfile" --insecure --destination "gitea-http.gitea.svc.cluster.local:3000/${{ github.repository }}:${{ github.sha }}" --cache=true
name: Build and publish container name: Build and publish container