Merge pull request #2 from palomachain/clohr/scripe #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
buildx: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- | |
name: Fetch all tags | |
run: git fetch --force --tags | |
- name: Set up QEMU | |
id: qemu | |
uses: docker/setup-qemu-action@v3 | |
- | |
name: Use Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v3 | |
- | |
name: Build image for release | |
run: | | |
docker buildx build \ | |
--load \ | |
-t sparrow-release \ | |
--target release \ | |
. | |
- | |
name: Release | |
run: | | |
docker run \ | |
-e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} \ | |
sparrow-release |