Skip to content

chore: 1.27

chore: 1.27 #49

Workflow file for this run

# .github/workflows/release.yml
name: goreleaser
on:
push:
# run only against tags
tags:
- "*"
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: set up go
uses: actions/setup-go@v5
with:
go-version: stable
- name: run goreleaser
uses: goreleaser/goreleaser-action@v6
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
distro_matrix:
strategy:
matrix:
os: [alpine, rocky-8, rocky-9, ubuntu-focal, ubuntu-jammy, ubuntu-noble]
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: login to dockerhub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: docker meta
uses: docker/metadata-action@v5
id: meta
with:
images: m0rf30/yap-${{ matrix.os }}
labels: |
maintainer=Yap
org.opencontainers.image.authors=M0Rf30
org.opencontainers.image.title=yap
org.opencontainers.image.description=Package software with ease 📦
org.opencontainers.image.vendor=M0Rf30
tags: |
type=ref,event=tag
- name: get the git tag
if: startsWith(github.ref, 'refs/tags/')
run: echo "TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: m0rf30/yap-${{ matrix.os }}:${{ env.TAG }}
file: build/deploy/${{ matrix.os }}/Dockerfile