Compare commits
1 Commits
fix/insecu
...
fix/tls-ve
| Author | SHA1 | Date | |
|---|---|---|---|
| b918ca451f |
@@ -21,10 +21,13 @@ jobs:
|
||||
|
||||
- name: Build and push container image
|
||||
run: |
|
||||
mkdir -p /etc/containers
|
||||
printf '[registries.insecure]\nregistries = ["git.kimchi"]\n' > /etc/containers/registries.conf
|
||||
|
||||
IMAGE_TAG="${{ env.IMAGE }}:sha-${GITHUB_SHA::8}"
|
||||
IMAGE_LATEST="${{ env.IMAGE }}:latest"
|
||||
|
||||
buildah bud -f Containerfile -t "$IMAGE_TAG" -t "$IMAGE_LATEST" .
|
||||
buildah bud --tls-verify=false -f Containerfile -t "$IMAGE_TAG" -t "$IMAGE_LATEST" .
|
||||
buildah login --tls-verify=false "${{ env.REGISTRY }}" -u "${{ secrets.REGISTRY_USER }}" -p "${{ secrets.REGISTRY_PASSWORD }}"
|
||||
buildah push --tls-verify=false "$IMAGE_TAG"
|
||||
buildah push --tls-verify=false "$IMAGE_LATEST"
|
||||
|
||||
Reference in New Issue
Block a user