Skip to content

chore: switch trident base images to debian #12

chore: switch trident base images to debian

chore: switch trident base images to debian #12

Workflow file for this run

name: Trident Build
on:
push:
paths:
- "trident-distrowith/**"
pull_request:
paths:
- "trident-distrowith/**"
jobs:
build:
# github.ref == 'refs/heads/main' &&
if: |
!github.event.pull_request.head.repo.fork
runs-on: ubuntu-latest
defaults:
run:
working-directory: trident-distrowith
steps:
- uses: actions/checkout@v4
- name: Checkout trident repo
run: ./checkout.sh
- name: Patch Dockerfile with alpine and nfs-utils
working-directory: trident-distrowith/trident
run: patch Dockerfile ../dockerfile.patch
- name: Patch Makefile to change default registry for images
working-directory: trident-distrowith/trident
run: patch Makefile ../makefile.patch
- name: Run make command
working-directory: trident-distrowith/trident
env:
BUILD_TYPE: stable
run: make images
- name: List docker images
run: docker image ls
- name: Log in to ghcr.io registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
- name: Push docker images
run: |
docker image ls --format=json | \
jq 'select(.Repository == "ghcr.io/postfinance/trident") | .Repository + ":" + .Tag' | \
xargs -I_ docker push _