Skip to content

Update goreleaser/nfpm from v2.33.0 to v2.33.1 #1087

Update goreleaser/nfpm from v2.33.0 to v2.33.1

Update goreleaser/nfpm from v2.33.0 to v2.33.1 #1087

Workflow file for this run

# Copyright 2020 Adam Chalkley
#
# https://github.com/atc0005/go-ci
#
# Licensed under the MIT License. See LICENSE file in the project root for
# full license information.
name: Build images
# Run builds for Pull Requests (new, updated)
# `synchronized` seems to equate to pushing new commits to a linked branch
# (whether force-pushed or not)
on:
#push:
pull_request:
types: [opened, synchronize]
# Allow workflow to be triggered manually.
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows
workflow_dispatch:
jobs:
build_stable_image_using_makefile:
name: Build stable image using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 10
steps:
- name: Print Docker version
run: docker --version
- name: Clone full repo history
uses: actions/checkout@v4
with:
# Needed in order to retrieve tags for use with semver calculations
fetch-depth: 0
# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"
# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
- name: Generate semantic version for project
id: use-git-describe-semver
uses: choffmeister/[email protected]
with:
fallback: v0.0.0
drop-prefix: false
prerelease-prefix: dev
prerelease-suffix: ""
prerelease-timestamped: false
# - name: Install git-describe-semver
# id: install-git-describe-semver
# run: go install github.com/choffmeister/git-describe-semver@latest
# https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-of-setting-an-output-parameter
# - name: Record semantic version using git-describe-semver
# id: use-git-describe-semver
# run: echo "version=$($HOME/go/bin/git-describe-semver)" >> "$GITHUB_OUTPUT"
- name: Build stable image
run: |
export REPO_VERSION=${{ steps.use-git-describe-semver.outputs.version }}
make build-stable
- name: List generated Docker images
run: docker image ls --filter "label=atc0005.go-ci" --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"
build_oldstable_alpine_x64_image_using_makefile:
name: Build oldstable Alpine x64 image using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 10
steps:
- name: Print Docker version
run: docker --version
- name: Clone full repo history
uses: actions/checkout@v4
with:
# Needed in order to retrieve tags
fetch-depth: 0
# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"
# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
- name: Generate semantic version for project
id: use-git-describe-semver
uses: choffmeister/[email protected]
with:
fallback: v0.0.0
drop-prefix: false
prerelease-prefix: dev
prerelease-suffix: ""
prerelease-timestamped: false
- name: Build oldstable Alpine x64 image
run: |
export REPO_VERSION=${{ steps.use-git-describe-semver.outputs.version }}
make build-oldstable-alpine-buildx64
- name: List generated Docker images
run: docker image ls --filter "label=atc0005.go-ci" --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"
build_oldstable_alpine_x86_image_using_makefile:
name: Build oldstable Alpine x86 image using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 10
steps:
- name: Print Docker version
run: docker --version
- name: Clone full repo history
uses: actions/checkout@v4
with:
# Needed in order to retrieve tags for use with semver calculations
fetch-depth: 0
# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"
# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
- name: Generate semantic version for project
id: use-git-describe-semver
uses: choffmeister/[email protected]
with:
fallback: v0.0.0
drop-prefix: false
prerelease-prefix: dev
prerelease-suffix: ""
prerelease-timestamped: false
- name: Build oldstable Alpine x86 image
run: |
export REPO_VERSION=${{ steps.use-git-describe-semver.outputs.version }}
make build-oldstable-alpine-buildx86
- name: List generated Docker images
run: docker image ls --filter "label=atc0005.go-ci" --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"
build_stable_alpine_x64_image_using_makefile:
name: Build stable Alpine x64 image using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 10
steps:
- name: Print Docker version
run: docker --version
- name: Clone full repo history
uses: actions/checkout@v4
with:
# Needed in order to retrieve tags
fetch-depth: 0
# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"
# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
- name: Generate semantic version for project
id: use-git-describe-semver
uses: choffmeister/[email protected]
with:
fallback: v0.0.0
drop-prefix: false
prerelease-prefix: dev
prerelease-suffix: ""
prerelease-timestamped: false
- name: Build stable Alpine x64 image
run: |
export REPO_VERSION=${{ steps.use-git-describe-semver.outputs.version }}
make build-stable-alpine-buildx64
- name: List generated Docker images
run: docker image ls --filter "label=atc0005.go-ci" --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"
build_stable_alpine_x86_image_using_makefile:
name: Build stable Alpine x86 image using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 10
steps:
- name: Print Docker version
run: docker --version
- name: Clone full repo history
uses: actions/checkout@v4
with:
# Needed in order to retrieve tags for use with semver calculations
fetch-depth: 0
# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"
# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
- name: Generate semantic version for project
id: use-git-describe-semver
uses: choffmeister/[email protected]
with:
fallback: v0.0.0
drop-prefix: false
prerelease-prefix: dev
prerelease-suffix: ""
prerelease-timestamped: false
- name: Build stable Alpine x86 image
run: |
export REPO_VERSION=${{ steps.use-git-describe-semver.outputs.version }}
make build-stable-alpine-buildx86
- name: List generated Docker images
run: docker image ls --filter "label=atc0005.go-ci" --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"
build_unstable_alpine_x64_image_using_makefile:
name: Build unstable Alpine x64 image using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 10
steps:
- name: Print Docker version
run: docker --version
- name: Clone full repo history
uses: actions/checkout@v4
with:
# Needed in order to retrieve tags
fetch-depth: 0
# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"
# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
- name: Generate semantic version for project
id: use-git-describe-semver
uses: choffmeister/[email protected]
with:
fallback: v0.0.0
drop-prefix: false
prerelease-prefix: dev
prerelease-suffix: ""
prerelease-timestamped: false
- name: Build unstable Alpine x64 image
run: |
export REPO_VERSION=${{ steps.use-git-describe-semver.outputs.version }}
make build-unstable-alpine-buildx64
- name: List generated Docker images
run: docker image ls --filter "label=atc0005.go-ci" --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"
build_unstable_alpine_x86_image_using_makefile:
name: Build unstable Alpine x86 image using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 10
steps:
- name: Print Docker version
run: docker --version
- name: Clone full repo history
uses: actions/checkout@v4
with:
# Needed in order to retrieve tags for use with semver calculations
fetch-depth: 0
# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"
# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
- name: Generate semantic version for project
id: use-git-describe-semver
uses: choffmeister/[email protected]
with:
fallback: v0.0.0
drop-prefix: false
prerelease-prefix: dev
prerelease-suffix: ""
prerelease-timestamped: false
- name: Build unstable Alpine x86 image
run: |
export REPO_VERSION=${{ steps.use-git-describe-semver.outputs.version }}
make build-unstable-alpine-buildx86
- name: List generated Docker images
run: docker image ls --filter "label=atc0005.go-ci" --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"
build_stable_cgo-mingw-w64_image_using_makefile:
name: Build stable cgo-mingw-w64 image using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 10
steps:
- name: Print Docker version
run: docker --version
- name: Clone full repo history
uses: actions/checkout@v4
with:
# Needed in order to retrieve tags for use with semver calculations
fetch-depth: 0
# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"
# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
- name: Generate semantic version for project
id: use-git-describe-semver
uses: choffmeister/[email protected]
with:
fallback: v0.0.0
drop-prefix: false
prerelease-prefix: dev
prerelease-suffix: ""
prerelease-timestamped: false
- name: Build stable cgo-mingw-w64 image
run: |
export REPO_VERSION=${{ steps.use-git-describe-semver.outputs.version }}
make stable-cgo-mingw-w64-build
- name: List generated Docker images
run: docker image ls --filter "label=atc0005.go-ci" --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"
build_stable_mirror_images_using_makefile:
name: Build stable mirror images using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 10
steps:
- name: Print Docker version
run: docker --version
- name: Clone full repo history
uses: actions/checkout@v4
with:
# Needed in order to retrieve tags for use with semver calculations
fetch-depth: 0
# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"
# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
- name: Generate semantic version for project
id: use-git-describe-semver
uses: choffmeister/[email protected]
with:
fallback: v0.0.0
drop-prefix: false
prerelease-prefix: dev
prerelease-suffix: ""
prerelease-timestamped: false
- name: Build stable mirror image
run: |
export REPO_VERSION=${{ steps.use-git-describe-semver.outputs.version }}
make stable-mirror-build
- name: List generated Docker images
run: docker image ls --filter "label=atc0005.go-ci" --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"
build_oldstable_image_using_makefile:
name: Build oldstable image using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 10
steps:
- name: Print Docker version
run: docker --version
- name: Clone full repo history
uses: actions/checkout@v4
with:
# Needed in order to retrieve tags for use with semver calculations
fetch-depth: 0
# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"
# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
- name: Generate semantic version for project
id: use-git-describe-semver
uses: choffmeister/[email protected]
with:
fallback: v0.0.0
drop-prefix: false
prerelease-prefix: dev
prerelease-suffix: ""
prerelease-timestamped: false
- name: Build oldstable image
run: |
export REPO_VERSION=${{ steps.use-git-describe-semver.outputs.version }}
make build-oldstable
- name: List generated Docker images
run: docker image ls --filter "label=atc0005.go-ci" --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"
build_unstable_image_using_makefile:
name: Build unstable image using Makefile
runs-on: ubuntu-latest
# Default: 360 minutes
timeout-minutes: 10
steps:
- name: Print Docker version
run: docker --version
- name: Clone full repo history
uses: actions/checkout@v4
with:
# Needed in order to retrieve tags for use with semver calculations
fetch-depth: 0
# Mark the current working directory as a safe directory in git to
# resolve "dubious ownership" complaints.
#
# https://docs.github.com/en/actions/learn-github-actions/variables#default-environment-variables
# https://confluence.atlassian.com/bbkb/git-command-returns-fatal-error-about-the-repository-being-owned-by-someone-else-1167744132.html
# https://github.com/actions/runner-images/issues/6775
# https://github.com/actions/checkout/issues/766
- name: Mark the current working directory as a safe directory in git
# run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
run: git config --global --add safe.directory "${PWD}"
# bsdmainutils provides "column" which is used by the Makefile
- name: Install Ubuntu packages
run: sudo apt-get update && sudo apt-get install -y --no-install-recommends make gcc bsdmainutils
- name: Generate semantic version for project
id: use-git-describe-semver
uses: choffmeister/[email protected]
with:
fallback: v0.0.0
drop-prefix: false
prerelease-prefix: dev
prerelease-suffix: ""
prerelease-timestamped: false
- name: Build unstable image
run: |
export REPO_VERSION=${{ steps.use-git-describe-semver.outputs.version }}
make build-unstable
- name: List generated Docker images
run: docker image ls --filter "label=atc0005.go-ci" --format "table {{.Repository}}\t{{.Tag}}\t{{.ID}}\t{{.Size}}"