Skip to content

Commit

Permalink
Test outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
graveland committed Oct 11, 2024
1 parent 30234ee commit 0cc83e4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/publish_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ jobs:

runs-on: "${{ matrix.runs_on }}"

outputs:
builder_id_arm64: ${{ steps.build.outputs.builder_id_arm64 }}
release_id_arm64: ${{ steps.build.outputs.release_id_arm64 }}
builder_id_amd64: ${{ steps.build.outputs.builder_id_amd64 }}
release_id_amd64: ${{ steps.build.outputs.release_id_amd64 }}

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -94,6 +100,9 @@ jobs:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: insepct output
run: echo '${{ toJSON(needs.publish.outputs) }}'

- name: Publish combined manifest for pg${{ matrix.pg_major }}${{ matrix.docker_tag_postfix }}
env:
PG_MAJOR: ${{ matrix.pg_major }}
Expand Down
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ builder:
publish-builder: # build and publish the `builder` target image
publish-builder: builder
docker push "$(DOCKER_BUILDER_ARCH_URL)"
echo "builder_id_$(ARCH)=$$(docker inspect "$(DOCKER_BUILDER_ARCH_URL)" | jq -r '.[].Id')" >> "$(GITHUB_OUTPUT)"

# The prepare step does not build the final image, as we need to use introspection
# to find out what versions of software are installed in this image
Expand All @@ -199,6 +200,7 @@ release: $(VAR_VERSION_INFO)
publish-release: # build and publish the `release` target image
publish-release: release
docker push "$(DOCKER_RELEASE_ARCH_URL)"
echo "release_id_$(ARCH)=$$(docker inspect "$(DOCKER_RELEASE_ARCH_URL)" | jq -r '.[].Id')" >> "$(GITHUB_OUTPUT)"

.PHONY: build-sha
build-sha: # build a specific git commit
Expand Down

0 comments on commit 0cc83e4

Please sign in to comment.