Fix buildah push flags
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m56s
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 1m56s
This commit is contained in:
@@ -21,20 +21,12 @@ jobs:
|
|||||||
IMAGE=harbor.scottyah.com/scottyah/blog
|
IMAGE=harbor.scottyah.com/scottyah/blog
|
||||||
buildah --isolation chroot bud -t $IMAGE:${{ github.sha }} -t $IMAGE:latest .
|
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
|
- name: Push image
|
||||||
run: |
|
run: |
|
||||||
IMAGE=harbor.scottyah.com/scottyah/blog
|
IMAGE=harbor.scottyah.com/scottyah/blog
|
||||||
buildah login --tls-verify=false -u "$HARBOR_USERNAME" -p "$HARBOR_PASSWORD" harbor.scottyah.com
|
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 push --tls-verify=false $IMAGE:${{ github.sha }}
|
||||||
buildah --isolation chroot push --tls-verify=false $IMAGE:latest
|
buildah push --tls-verify=false $IMAGE:latest
|
||||||
env:
|
env:
|
||||||
HARBOR_USERNAME: ${{ secrets.HARBOR_USERNAME }}
|
HARBOR_USERNAME: ${{ secrets.HARBOR_USERNAME }}
|
||||||
HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }}
|
HARBOR_PASSWORD: ${{ secrets.HARBOR_PASSWORD }}
|
||||||
|
|||||||
Reference in New Issue
Block a user