Skip to content

chore: bump alpine from 3.20.2 to 3.20.3 (#6) #7

chore: bump alpine from 3.20.2 to 3.20.3 (#6)

chore: bump alpine from 3.20.2 to 3.20.3 (#6) #7

Workflow file for this run

name: Release
on:
push:
branches:
- 'main'
permissions:
contents: write
packages: write
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get next version
id: get_next_version
uses: thenativeweb/[email protected]
- name: Setup Go
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
uses: actions/setup-go@v5
with:
go-version: 1.22.x
- name: Setup Git user
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Create new tag
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
run: |
next_version=${{ steps.get_next_version.outputs.version }}
git tag $next_version
git push origin $next_version
- name: Build for platforms
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
run: make build-all
- name: Release binaries
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
uses: ncipollo/release-action@v1
with:
artifacts: "build/*"
tag: ${{ steps.get_next_version.outputs.version }}
- name: Set up QEMU
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
uses: docker/setup-buildx-action@v3
- name: Login to GitHub container registry
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
uses: docker/login-action@v3
with:
registry: ghcr.io
username: github-actions
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
if: ${{ steps.get_next_version.outputs.hasNextVersion == 'true' }}
uses: docker/build-push-action@v6
env:
DOCKER_REPOSITORY: ghcr.io/${{ github.repository }}
with:
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ env.DOCKER_REPOSITORY }}:latest,${{ env.DOCKER_REPOSITORY }}:${{steps.get_next_version.outputs.version}}