Some checks failed
Publish Edge Images / images (apps/console/Dockerfile, barkstack) (push) Successful in 5m22s
Publish Edge Images / images (services/pawsql/Dockerfile, pawsql) (push) Successful in 6m34s
Publish Edge Images / images (services/treatvault/Dockerfile, treatvault) (push) Successful in 6m36s
Test and Release Barkstack / test (push) Successful in 54s
Verify Platform / verify (push) Failing after 57s
Verify Platform / images (apps/console/Dockerfile, console) (push) Has been skipped
Verify Platform / images (services/pawsql/Dockerfile, pawsql) (push) Has been skipped
Verify Platform / images (services/treatvault/Dockerfile, treatvault) (push) Has been skipped
Test and Release Barkstack / release (push) Successful in 10s
64 lines
2.1 KiB
YAML
64 lines
2.1 KiB
YAML
name: Publish Edge Images
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
REGISTRY_HOST: registry.campbellwireless.net
|
|
|
|
jobs:
|
|
images:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- image: barkstack
|
|
dockerfile: apps/console/Dockerfile
|
|
- image: pawsql
|
|
dockerfile: services/pawsql/Dockerfile
|
|
- image: treatvault
|
|
dockerfile: services/treatvault/Dockerfile
|
|
steps:
|
|
- name: Checkout
|
|
env:
|
|
REPO_URL: https://cloud.campbellwireless.net/git/${{ github.repository }}.git
|
|
run: |
|
|
set -eux
|
|
git init .
|
|
git remote add origin "$REPO_URL"
|
|
auth="$(printf '%s' '${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}' | base64 | tr -d '\n')"
|
|
git config --local http.https://cloud.campbellwireless.net/.extraheader "AUTHORIZATION: basic $auth"
|
|
git fetch --prune --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/* +refs/tags/*:refs/tags/*
|
|
git checkout --detach "${{ github.sha }}"
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Log in to registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ${{ env.REGISTRY_HOST }}
|
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
|
password: ${{ secrets.REGISTRY_PASSWORD }}
|
|
|
|
- name: Build and push ${{ matrix.image }}
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
file: ${{ matrix.dockerfile }}
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64
|
|
build-args: VERSION=edge
|
|
tags: |
|
|
${{ env.REGISTRY_HOST }}/barkstack/${{ matrix.image }}:edge
|
|
${{ env.REGISTRY_HOST }}/barkstack/${{ matrix.image }}:sha-${{ github.sha }}
|
|
labels: |
|
|
org.opencontainers.image.source=${{ github.server_url }}/${{ github.repository }}
|
|
org.opencontainers.image.revision=${{ github.sha }}
|