Merging tag v3.0.0-alpha1 into upstream-v3.0.0. Incomplete merge - se… #97
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 | ||
# Uncomment the following to let goreleaser automatically | ||
# create a GitHub release when a tag is pushed. | ||
# permissions: | ||
# contents: write | ||
on: | ||
push: | ||
branches-ignore: | ||
- '**' | ||
tags: | ||
- 'v*.*.*' | ||
# to be used by fork patch-releases ^^ | ||
- 'v*.*.*-*' | ||
workflow_dispatch: | ||
jobs: | ||
goreleaser: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Maximize build space | ||
uses: AdityaGarg8/remove-unwanted-software@v4 | ||
with: | ||
remove-dotnet: 'true' | ||
remove-android: 'true' | ||
remove-haskell: 'true' | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: dockerhub-login | ||
uses: docker/login-action@v3 | ||
with: | ||
username: ${{ secrets.DOCKERHUB }} | ||
password: ${{ secrets.DOCKERHUB_KEY }} | ||
<<<<<<< HEAD | ||
======= | ||
- name: ghcr-login | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository_owner }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
>>>>>>> v3.0.0-alpha1 | ||
- name: Prepare | ||
id: prepare | ||
run: | | ||
TAG=${GITHUB_REF#refs/tags/} | ||
echo "tag_name=${TAG}" >> $GITHUB_OUTPUT | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v3 | ||
- run: echo ${{ steps.prepare.outputs.tag_name }} | ||
- name: Release | ||
run: | | ||
make release | ||
docker images | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VERSION: ${{ steps.prepare.outputs.tag_name }} | ||
DOCKER_USERNAME: ${{ secrets.DOCKERHUB }} | ||
DOCKER_PASSWORD: ${{ secrets.DOCKERHUB_KEY }} |