2024-03-05 20:40:02 +00:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: docker
|
2024-03-08 15:46:01 +00:00
|
|
|
container: catthehacker/ubuntu:act-latest
|
2024-03-05 20:40:02 +00:00
|
|
|
steps:
|
2024-03-08 14:34:15 +00:00
|
|
|
- name: Checkout
|
|
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Create Kubeconfig
|
|
|
|
run: |
|
|
|
|
mkdir $HOME/.kube
|
|
|
|
echo "${{ secrets.KUBECONFIG_BUILDX }}" > $HOME/.kube/config
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
with:
|
|
|
|
driver: kubernetes
|
|
|
|
driver-opts: |
|
2024-03-08 14:48:42 +00:00
|
|
|
namespace=git
|
2024-03-08 14:34:15 +00:00
|
|
|
qemu.install=false
|
2024-03-08 15:44:22 +00:00
|
|
|
- name: Login to Docker Registry
|
|
|
|
uses: docker/login-action@v3
|
|
|
|
with:
|
|
|
|
registry: hub.docker.com
|
|
|
|
username: imartyn
|
|
|
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
2024-03-08 14:34:15 +00:00
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v5
|
|
|
|
with:
|
|
|
|
context: .
|
2024-03-08 15:44:22 +00:00
|
|
|
push: true
|
2024-03-08 14:34:15 +00:00
|
|
|
platforms: linux/amd64
|
|
|
|
tags: |
|
2024-03-08 15:44:22 +00:00
|
|
|
imartyn/usb-ipp:latest
|