41 lines
1.4 KiB
YAML
41 lines
1.4 KiB
YAML
on:
|
|
schedule:
|
|
- cron: '30 3 * * *'
|
|
push:
|
|
branches:
|
|
- 'main'
|
|
workflow_dispatch: {}
|
|
jobs:
|
|
ingress-nginx:
|
|
runs-on: docker
|
|
container: catthehacker/ubuntu:act-24.04
|
|
steps:
|
|
- name: Check out repository code
|
|
uses: actions/checkout@v6
|
|
- name: Create Kubeconfig
|
|
run: |
|
|
mkdir $HOME/.kube
|
|
echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v4
|
|
with:
|
|
driver: kubernetes
|
|
driver-opts: |
|
|
namespace=git
|
|
qemu.install=false
|
|
- name: Login to forgejo
|
|
uses: docker/login-action@v4
|
|
with:
|
|
registry: git.martyn.berlin
|
|
username: martyn
|
|
password: ${{ secrets.PUSH_TOKEN }}
|
|
- name: clone ingress-nginx
|
|
run: |
|
|
git clone https://imartyn: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@github.com/chainguard-forks/ingress-nginx
|
|
- name: build nginx image
|
|
run: |
|
|
pwd
|
|
ls
|
|
export TAG=$(cat ingress-nginx/images/nginx/TAG)
|
|
cd ingress-nginx/images/nginx/rootfs && docker buildx build --platform=linux/amd64 --load -t git.martyn.berlin/ingress-nginx/nginx:${TAG} .
|
|
docker push git.martyn.berlin/ingress-nginx/nginx:${TAG}
|