From ce3ba12af282e32b844932bc8cec326ed6cb1f40 Mon Sep 17 00:00:00 2001 From: sim Date: Sun, 12 Nov 2023 22:56:52 +0100 Subject: [PATCH] Fix release CI --- .github/workflows/release.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 840f766..86b1b2c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,16 +51,18 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - - name: Build and push + - name: Build id: build uses: docker/build-push-action@v5 with: - push: ${{ github.event_name != 'pull_request' }} + context: . + push: false load: true file: Containerfile platforms: ${{ matrix.PLATFORM }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + - name: Copy artifacts run: | mkdir -p artifacts @@ -70,6 +72,17 @@ jobs: TAG=$GITHUB_SHA fi docker run --rm --entrypoint=cat ghcr.io/${{ github.repository }} /usr/local/bin/mollysocket > artifacts/mollysocket-${{ matrix.TARGET }}-$TAG + + - name: Push + uses: docker/build-push-action@v5 + with: + context: . + push: true + file: Containerfile + platforms: ${{ matrix.PLATFORM }} + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} + - name: Archive artifact uses: actions/upload-artifact@v2 with: