Skip to content

chore(deps): update golang:1.22-bookworm docker digest to 5c56bd4 #139

chore(deps): update golang:1.22-bookworm docker digest to 5c56bd4

chore(deps): update golang:1.22-bookworm docker digest to 5c56bd4 #139

Workflow file for this run

name: Build
on:
pull_request:
branches:
- main
jobs:
build:
name: build
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Setup Go environment
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
with:
go-version-file: "go.mod"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@5742e2a039330cbb23ebf35f046f814d4c6ff811 # v5.1.0
with:
version: v1.25.1 # renovate: datasource=github-tags depName=goreleaser/goreleaser
args: build --single-target --snapshot --clean --output ./version
env:
GORELEASER_CURRENT_TAG: ${{ steps.draft_release.outputs.tag_name }}
- name: Version test
id: version
run: echo "output=$(./version bump 0.1.0)" >> "$GITHUB_OUTPUT"
- name: Failed
if: ${{ steps.version.outputs.output != '0.1.1' }}
run: |-
exit 1
- name: Success
if: ${{ steps.version.outputs.output == '0.1.1' }}
run: |-
exit 0
docker-build:
name: docker build
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@d70bba72b1f3fd22344832f00baa16ece964efeb # v3.3.0
- name: Build Docker image
run: VERSION=$(git rev-parse --short HEAD) make docker-build docker-build-x-platform
- name: Version test
id: version
run: |-
echo "output=$(docker run ghcr.io/version-cli/version:latest bump 0.1.0)" >> "$GITHUB_OUTPUT"
- name: Failed
if: ${{ steps.version.outputs.output != '0.1.1' }}
run: |-
exit 1
- name: Success
if: ${{ steps.version.outputs.output == '0.1.1' }}
run: |-
exit 0