fix publish?
Some checks failed
Build images / build-and-push (push) Successful in 10s
Build images / build (push) Has been cancelled

This commit is contained in:
Julius Zeidler 2025-04-07 12:08:15 +02:00
parent 2de051fae7
commit 879111fb9b
3 changed files with 1 additions and 60 deletions

View file

@ -1,24 +0,0 @@
name: build-airflow-image
on: push
jobs:
build:
runs-on: docker-cli
steps:
- name: Checkout the repo
uses: actions/checkout@v4
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: harbor.tech-tales.blog
username: robot$chris+airflow-pusher
password: ${{ secrets.HARBOR_PASSWORD }}
- name: Build and Push
uses: docker/build-push-action@v6
with:
push: true
tags: harbor.tech-tales.blog/chris/airflow:${{ steps.extract_tag.outputs.tag }}
context: airflow-image
file: airflow-image/Dockerfile

View file

@ -1,34 +0,0 @@
name: kaniko
on: push
jobs:
prepare:
runs-on: catthehacker
steps:
- name: Prepare environment variables
run: |
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
echo REGISTRY=${{ env.FORGEJO_HOST }} >> $GITHUB_ENV
- name: Checkout the repo
uses: actions/checkout@v4
- run: echo ${{ env.REGISTRY }}
- name: Login to the registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.PACKAGE_TOKEN }}
build:
runs-on: kaniko
steps:
- run: |
mkdir -p /kaniko/.docker
echo "{\"auths\":{\"$CI_REGISTRY\":{\"username\":\"$CI_REGISTRY_USER\",\"password\":\"$CI_REGISTRY_PASSWORD\"}}}" > /kaniko/.docker/config.json
/kaniko/executor --cache=true --context $CI_PROJECT_DIR --dockerfile $CI_PROJECT_DIR/Dockerfile-alpine --destination "$CI_REGISTRY_IMAGE/alpine:$CI_COMMIT_BRANCH"
- name: Build and Pus
uses: docker/build-push-action@v6
with:
push: true
context: swiss-army-knife
file: Dockerfile-alpine

View file

@ -13,7 +13,6 @@ env:
# Set this to the public IP or hostname of your registry,
# whichever you use to reach it from your desktop/laptop
FORGEJO_HOST: code.zeidler.dev
CONTAINER_NAME: homelab-ee-single
jobs:
build-and-push:
@ -35,7 +34,7 @@ jobs:
username: ${{ github.actor }}
password: ${{ secrets.PACKAGE_TOKEN }}
build:
runs-on: docker-cli
runs-on: node-bookworm
environment: deploy
steps:
- name: Set up Docker Buildx