ipp-usb-docker/.forgejo/workflows/demo.yaml

32 lines
837 B
YAML
Raw Normal View History

on: [push]
jobs:
test:
runs-on: docker
2024-03-08 15:46:01 +00:00
container: catthehacker/ubuntu:act-latest
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:
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