mirror of
https://github.com/go-acme/lego.git
synced 2024-11-29 01:42:09 +02:00
64 lines
1.5 KiB
YAML
64 lines
1.5 KiB
YAML
name: Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
|
|
release:
|
|
name: Release version
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
GO_VERSION: '1.20'
|
|
CGO_ENABLED: 0
|
|
|
|
steps:
|
|
|
|
# https://github.com/marketplace/actions/free-disk-space-ubuntu
|
|
- name: Free Disk Space
|
|
uses: jlumbroso/free-disk-space@main
|
|
with:
|
|
# this might remove tools that are actually needed
|
|
tool-cache: false
|
|
|
|
# all of these default to true
|
|
android: true
|
|
dotnet: true
|
|
haskell: true
|
|
large-packages: true
|
|
docker-images: true
|
|
swap-storage: false
|
|
|
|
- name: Check out code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Go ${{ env.GO_VERSION }}
|
|
uses: actions/setup-go@v4
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
|
|
- name: Docker Login
|
|
env:
|
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
run: echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
# https://goreleaser.com/ci/actions/
|
|
- name: Run GoReleaser
|
|
uses: goreleaser/goreleaser-action@v4
|
|
with:
|
|
version: latest
|
|
args: release -p 1 --clean --timeout=90m
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }}
|