Skip to content

build: don't build static jq binary #91

build: don't build static jq binary

build: don't build static jq binary #91

Workflow file for this run

name: Build and deploy
on:
push: {}
jobs:
build:
name: Build
permissions:
packages: write
strategy:
fail-fast: false
matrix:
include:
- arch: aarch64
runs-on: ubuntu-24.04-arm
BASEIMAGE: "quay.io/pypa/manylinux_2_28_aarch64@sha256:1f7c7e3de0b0e7775fd6f02a6fc8b829bba09c2ecc289b2f228aec3db2d04524"
- arch: x86_64
runs-on: ubuntu-24.04
BASEIMAGE: "quay.io/pypa/manylinux_2_28_x86_64@sha256:1400c561e5a44dfb152556a7e0cda377655ea02ff0cef672d07b8e7b977ef7d0"
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v4
- name: build image
run: |
docker build \
--tag "${GITHUB_REPOSITORY}-${{ matrix.arch }}:${GITHUB_SHA}" \
--build-arg "BASEIMAGE=${{ matrix.BASEIMAGE }}" \
.
- name: push image
if: startsWith(github.ref, 'refs/tags/')
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin
docker tag \
"${GITHUB_REPOSITORY}-${{ matrix.arch }}:${GITHUB_SHA}" \
"ghcr.io/${GITHUB_REPOSITORY}-${{ matrix.arch }}:${GITHUB_REF/#refs\/tags\//}"
docker push "ghcr.io/${GITHUB_REPOSITORY}-${{ matrix.arch }}:${GITHUB_REF/#refs\/tags\//}"