Load built image before workflow verification
Build and Publish dns-sync Image / build (push) Successful in 44s
Build and Publish dns-sync Image / build (push) Successful in 44s
This commit is contained in:
@@ -65,12 +65,13 @@ jobs:
|
||||
-f Containerfile \
|
||||
-t "$FULL_IMAGE:latest" \
|
||||
-t "$FULL_IMAGE:sha-$SHORT_SHA" \
|
||||
--output "type=docker,dest=$RUNNER_TEMP/dns-sync-built.tar" \
|
||||
.
|
||||
|
||||
# -------------------------------------------------
|
||||
# Verify locally before publishing
|
||||
# -------------------------------------------------
|
||||
- name: Verify image
|
||||
- name: Load and verify image
|
||||
env:
|
||||
REGISTRY: ${{ vars.REGISTRY }}
|
||||
run: |
|
||||
@@ -78,6 +79,11 @@ jobs:
|
||||
|
||||
FULL_IMAGE="$REGISTRY/david/dns-sync"
|
||||
|
||||
test -s "$RUNNER_TEMP/dns-sync-built.tar"
|
||||
|
||||
docker load \
|
||||
--input "$RUNNER_TEMP/dns-sync-built.tar"
|
||||
|
||||
docker image inspect "$FULL_IMAGE:latest" >/dev/null
|
||||
|
||||
docker run --rm \
|
||||
@@ -86,7 +92,7 @@ jobs:
|
||||
-m dns_sync reconcile --help
|
||||
|
||||
echo
|
||||
echo "Built image:"
|
||||
echo "Loaded image:"
|
||||
docker image ls "$FULL_IMAGE"
|
||||
|
||||
# -------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user