forked from admin/ansible
ci: drop broken .github/workflows path
This commit is contained in:
@@ -1,91 +0,0 @@
|
||||
name: build connectivity_tester (multi-arch)
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
ref:
|
||||
description: Git ref to build
|
||||
required: true
|
||||
default: feat/connectivity-tester
|
||||
image_name:
|
||||
description: Image name (e.g. hermes/connectivity_tester)
|
||||
required: true
|
||||
default: hermes/connectivity_tester
|
||||
push_stackfile:
|
||||
description: Upload rendered stack-compose as artifact
|
||||
required: false
|
||||
type: string
|
||||
default: "true"
|
||||
push:
|
||||
branches:
|
||||
- feat/connectivity-tester
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform:
|
||||
- linux/amd64
|
||||
- linux/arm64
|
||||
- linux/arm/v7
|
||||
outputs:
|
||||
image_tag: ${{ steps.tag.outputs.value }}
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ github.event.inputs.ref || github.ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Resolve image tag
|
||||
id: tag
|
||||
run: echo "value=auto-${GITHUB_SHA::8}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Resolve image name
|
||||
id: name
|
||||
run: echo "value=${{ github.event.inputs.image_name || 'hermes/connectivity_tester' }}" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Login to Gitea Container Registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | \
|
||||
docker login "gitea.rudolf.keenetic.link" \
|
||||
-u "hermes" --password-stdin
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Build and push image
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: connectivity_tester
|
||||
file: connectivity_tester/Dockerfile
|
||||
platforms: ${{ matrix.platform }}
|
||||
push: true
|
||||
tags: |
|
||||
gitea.rudolf.keenetic.link/${{ steps.name.outputs.value }}:${{ steps.tag.outputs.value }}
|
||||
gitea.rudolf.keenetic.link/${{ steps.name.outputs.value }}:latest
|
||||
cache-from: |
|
||||
type=registry,ref=gitea.rudolf.keenetic.link/${{ steps.name.outputs.value }}:buildcache
|
||||
cache-to: |
|
||||
type=registry,ref=gitea.rudolf.keenetic.link/${{ steps.name.outputs.value }}:buildcache,mode=max
|
||||
|
||||
- name: Render stackfile with image tag
|
||||
if: github.event.inputs.push_stackfile != 'false'
|
||||
run: |
|
||||
mkdir -p out
|
||||
sed "s|\${version}|${{ steps.tag.outputs.value }}|g" \
|
||||
connectivity_tester/stack-compose.yml \
|
||||
> "out/docker-compose-${{ steps.tag.outputs.value }}.yml"
|
||||
|
||||
- name: Upload rendered stackfile
|
||||
if: github.event.inputs.push_stackfile != 'false'
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: stack-compose
|
||||
path: out/
|
||||
Reference in New Issue
Block a user