Skip to content

Commit

Permalink
Sure up workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanrainer committed Aug 29, 2024
1 parent 358827f commit 3f25cb7
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/docker_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,13 @@ jobs:
- name: Get Docker Metadata
id: meta
uses: docker/metadata-action@v5
env:
DOCKER_METADATA_PR_HEAD_SHA: true
with:
images: ${{ env.NAMESPACED_REGISTRY }}/${{ matrix.changed_dir }}
tags: |
type=semver,pattern={{version}},value=v${{ steps.calculate_version.outputs.version }}
type=sha
type=sha,prefix=
- name: Build and Push Docker image
id: push
uses: docker/build-push-action@v6
Expand All @@ -84,22 +86,18 @@ jobs:
file: ${{ github.workspace }}/${{ matrix.changed_dir }}/Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
annotations: ${{ steps.meta.outputs.annotations }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ steps.extract_from_config_yaml.outputs.platforms }}
- name: Generate artifact attestation
uses: actions/attest-build-provenance@v1
with:
subject-name: ${{ env.NAMESPACED_REGISTRY }}/${{ matrix.changed_dir }}
subject-digest: ${{ steps.push.outputs.digest }}
push-to-registry: true
- name: Create Git Tag
if: ${{ github.event_name != 'pull_request' }}
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
default_bump: false
default_prerelease_bump: false
custom_tag: ${{ matrix.changed_dir }}/v${{ steps.calculate_version.outputs.version }}
dry_run: ${{ github.event_name == 'pull_request' }}
tag_prefix: ""
- name: Create GitHub Release
if: ${{ github.event_name != 'pull_request' }}
uses: comnoco/[email protected]
Expand Down
5 changes: 5 additions & 0 deletions binary-builder-glibc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
# contents of the container without us realising.
FROM rockylinux@sha256:9794037624aaa6212aeada1d28861ef5e0a935adaf93e4ef79837119f2a2d04c

LABEL org.opencontainers.image.title="binary-builder-glibc"
LABEL org.opencontainers.image.description="Builder image for Rust binaries that must be built with glibc 2.28"
LABEL org.opencontainers.image.vendor="Apollo GraphQL"
LABEL org.opencontainers.image.licenses="MIT"

ARG RUST_VERSION=1.80.1
ARG NODE_VERSION=20.15.1

Expand Down
5 changes: 5 additions & 0 deletions binary-builder-musl/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
# contents of the container without us realising.
FROM rust@sha256:b3ac1f65cf33390407c9b90558eb41e7a8311c47d836fca5800960f1aa2d11d5

LABEL org.opencontainers.image.title="binary-builder-musl"
LABEL org.opencontainers.image.description="Builder image for Rust binaries that must be built with musl"
LABEL org.opencontainers.image.vendor="Apollo GraphQL"
LABEL org.opencontainers.image.licenses="MIT"

# Update packages and package manager to keep us current
RUN apk update && apk upgrade

Expand Down

0 comments on commit 3f25cb7

Please sign in to comment.