2024-10-03 12:36:01 +00:00
|
|
|
# because we're testing the renovate part a lot, disabling this job
|
|
|
|
# on: [push]
|
2024-10-03 12:38:32 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-10-03 13:37:54 +00:00
|
|
|
- 'main'
|
2024-02-23 15:20:59 +00:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: docker
|
2024-10-03 11:16:12 +00:00
|
|
|
container: catthehacker/ubuntu:act-latest
|
2024-02-23 15:20:59 +00:00
|
|
|
steps:
|
2024-02-23 16:02:51 +00:00
|
|
|
- name: Check out repository code
|
|
|
|
uses: actions/checkout@v3
|
2024-10-03 10:55:51 +00:00
|
|
|
- name: Create Kubeconfig
|
|
|
|
run: |
|
|
|
|
mkdir $HOME/.kube
|
|
|
|
echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config
|
|
|
|
- name: Set up Docker Buildx
|
2024-02-23 16:59:26 +00:00
|
|
|
uses: docker/setup-buildx-action@v3
|
2024-02-23 17:09:22 +00:00
|
|
|
with:
|
2024-10-03 10:55:51 +00:00
|
|
|
driver: kubernetes
|
|
|
|
driver-opts: |
|
|
|
|
namespace=git
|
|
|
|
qemu.install=false
|
2024-02-23 16:54:26 +00:00
|
|
|
- name: Login to forgejo
|
2024-02-23 16:50:45 +00:00
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: git.martyn.berlin
|
|
|
|
username: martyn
|
|
|
|
password: ${{ secrets.PUSH_TOKEN }}
|
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
push: true
|
|
|
|
tags: git.martyn.berlin/martyn/fat-ssh:latest
|