Skip to content

Commit

Permalink
Fix release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
p1gp1g committed Nov 12, 2023
1 parent cbc5b9c commit ce3ba12
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit ce3ba12

Please sign in to comment.