Skip to content

Commit

Permalink
fixup! feat: push completed image
Browse files Browse the repository at this point in the history
  • Loading branch information
turadg committed Nov 6, 2023
1 parent e4b446f commit f5d5fe1
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ concurrency:

env:
REGISTRY: ghcr.io
LATEST_TAG: ghcr.io/agoric/agoric-3-proposals:latest

jobs:
# see https://docs.docker.com/build/ci/github-actions/test-before-push/
Expand All @@ -35,11 +34,14 @@ jobs:
echo "=== After cleanup:"
df -h
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: agoric/agoric-3-proposals
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Registry
- name: Login to GHCR
uses: docker/login-action@v3
# see https://docs.github.com/en/actions/publishing-packages/publishing-docker-images
with:
Expand All @@ -52,13 +54,20 @@ jobs:
run: ./buildTestImages.ts
- name: run test images
run: ./runTestImages.ts
# this should be fast because all the stages were already built
# ??? does it push correctly? https://github.com/Agoric/agoric-3-proposals/actions/runs/6750864452/job/18353986038?pr=11
# FIXME this is starting the build from scratch
# but this should be fast because all the stages were already built in the steps above
- name: Build and push complete image
uses: docker/build-push-action@v5
with:
context: .
# Output to local Docker client to re-use the stages in the previous build step
load: true
# push to registry on every repo push. A PR #2 will push with tag `pr-2` and `main` will have tag `main`.
# See https://github.com/docker/metadata-action?tab=readme-ov-file#basic.
push: true
tags: ${{ env.LATEST_TAG }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: notify on failure
if: failure() && github.event_name != 'pull_request'
uses: ./.github/actions/notify-status
Expand Down

0 comments on commit f5d5fe1

Please sign in to comment.