Debug secrets and add tls-verify=false for Harbor
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 42s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 42s
This commit is contained in:
@@ -21,12 +21,23 @@ jobs:
|
||||
IMAGE=harbor.scottyah.com/scottyah/blog
|
||||
buildah --isolation chroot bud -t $IMAGE:${{ github.sha }} -t $IMAGE:latest .
|
||||
|
||||
- name: Debug secrets
|
||||
run: |
|
||||
echo "HARBOR_USERNAME length: ${#HARBOR_USERNAME}"
|
||||
echo "HARBOR_PASSWORD length: ${#HARBOR_PASSWORD}"
|
||||
env:
|
||||
HARBOR_USERNAME: ${{ secrets.HARBOR_USERNAME }}
|
||||
HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }}
|
||||
|
||||
- name: Push image
|
||||
run: |
|
||||
IMAGE=harbor.scottyah.com/scottyah/blog
|
||||
buildah login -u "${{ secrets.HARBOR_USERNAME }}" -p "${{ secrets.HARBOR_PASSWORD }}" harbor.scottyah.com
|
||||
buildah --isolation chroot push $IMAGE:${{ github.sha }}
|
||||
buildah --isolation chroot push $IMAGE:latest
|
||||
buildah login --tls-verify=false -u "$HARBOR_USERNAME" -p "$HARBOR_PASSWORD" harbor.scottyah.com
|
||||
buildah --isolation chroot push --tls-verify=false $IMAGE:${{ github.sha }}
|
||||
buildah --isolation chroot push --tls-verify=false $IMAGE:latest
|
||||
env:
|
||||
HARBOR_USERNAME: ${{ secrets.HARBOR_USERNAME }}
|
||||
HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }}
|
||||
|
||||
- name: Deploy
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user