Files
StaticBinary.Skopeo/.gitea/workflows/actions.yaml
T
djpbessems 7034ed9fce
build-binaries / Build binary (Windows) (push) Successful in 2m23s
build-binaries / Build binary (Linux) (push) Successful in 2m40s
build: Add go build environment
2026-09-02 11:37:03 +10:00

70 lines
2.1 KiB
YAML

name: build-binaries
on: [push]
env:
SKOPEO_VERSION: v1.24.0
jobs:
build_linux:
name: Build binary (Linux)
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0
steps:
- name: Check out upstream repository code
uses: actions/checkout@v3
with:
github-server-url: https://github.com
repository: podman-container-tools/skopeo
ref: ${{ env.SKOPEO_VERSION }}
token: ${{ secrets.GH_TOKEN }}
- name: Set up build environment
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Build Linux binary
run: |
apt-get update && apt-get install -y go-md2man
make \
BUILDTAGS=containers_image_openpgp \
GO_DYN_FLAGS=
bin/skopeo --version
- name: Upload linux binaries to package registry
run: |
curl \
--header "Authorization: token $GIT_APIKEY" \
--upload-file bin/skopeo \
https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/skopeo_linux_amd64
build_windows:
name: Build binary (Windows)
runs-on: ubuntu-latest
env:
CGO_ENABLED: 0
steps:
- name: Check out upstream repository code
uses: actions/checkout@v3
with:
github-server-url: https://github.com
repository: podman-container-tools/skopeo
ref: ${{ env.SKOPEO_VERSION }}
token: ${{ secrets.GH_TOKEN }}
- name: Set up build environment
uses: actions/setup-go@v4
with:
go-version: '1.23'
- name: Build Windows binary
run: |
apt-get update && apt-get install -y go-md2man
make \
BUILDTAGS=containers_image_openpgp \
GO_DYN_FLAGS= \
bin/skopeo.windows.amd64.exe
- name: Upload Windows binaries to package registry
run: |
curl \
--header "Authorization: token $GIT_APIKEY" \
--upload-file bin/skopeo.windows.amd64.exe \
https://code.spamasaurus.com/api/packages/$GIT_USERNAME/generic/skopeo/$SKOPEO_VERSION/skopeo_windows_amd64.exe