Skip to content

build: bump time from 0.3.44 to 0.3.47 (#34) #38

build: bump time from 0.3.44 to 0.3.47 (#34)

build: bump time from 0.3.44 to 0.3.47 (#34) #38

Workflow file for this run

name: Docker build
on:
workflow_dispatch:
pull_request:
push:
branches:
- trunk
jobs:
build-images:
name: Build Docker Images
strategy:
matrix:
include:
- tag: amd64
features: ""
image: ubuntu-latest
- tag: armv8
features: ""
image: ubuntu-24.04-arm
runs-on: ${{ matrix.image }}
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Login to ghcr
if: github.ref == 'refs/heads/trunk' && github.event_name != 'pull_request'
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | podman login -u ${{ github.repository_owner }} --password-stdin ghcr.io
- name: Convert GITHUB_REPOSITORY into lowercase
run: |
echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Build ${{ matrix.tag }}
run: |
podman build \
--format docker \
--build-arg FEATURES=${{ matrix.features }} \
-t gateway-queue:${{ matrix.tag }} \
.
- name: Push image
if: github.ref == 'refs/heads/trunk' && github.event_name != 'pull_request'
run: |
podman tag gateway-queue:${{ matrix.tag }} ghcr.io/${REPO}:${{ matrix.tag }}
podman push ghcr.io/${REPO}:${{ matrix.tag }}
create-manifest:
name: Create Docker manifests
runs-on: ubuntu-latest
needs: build-images
if: github.ref == 'refs/heads/trunk' && github.event_name != 'pull_request'
steps:
- name: Login to ghcr
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | podman login -u ${{ github.repository_owner }} --password-stdin ghcr.io
- name: Convert GITHUB_REPOSITORY into lowercase
run: |
echo "REPO=${GITHUB_REPOSITORY,,}" >>${GITHUB_ENV}
- name: Create manifest and push it
run: |
podman manifest create gateway-queue-latest docker://ghcr.io/${REPO}:amd64 docker://ghcr.io/${REPO}:armv8
podman manifest push --format v2s2 gateway-queue-latest docker://ghcr.io/${REPO}:latest