You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

52 lines
1.9 KiB
YAML

1 year ago
name: build lightwatch
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
on:
push:
branches:
- main
paths-ignore:
- ".gitea/workflows/**"
jobs:
build:
runs-on: ubuntu-latest
container:
#image: registry.local/catthehacker:act-latest-wagnerca
image: registry.local/catthehacker-home:act-latest
1 year ago
volumes:
- /var/run/user/1000/docker.sock:/var/run/docker.sock
#- /var/run/secrets/kubernetes.io/serviceaccount:/var/run/secrets/kubernetes.io/serviceaccount
1 year ago
env:
KUBERNETES_PORT: "tcp://10.43.0.1:443"
KUBERNETES_PORT_443_TCP: "tcp://10.43.0.1:443"
KUBERNETES_PORT_443_TCP_ADDR: "10.43.0.1"
KUBERNETES_PORT_443_TCP_PORT: "443"
KUBERNETES_PORT_443_TCP_PROTO: "tcp"
KUBERNETES_SERVICE_HOST: "10.43.0.1"
KUBERNETES_SERVICE_PORT: "443"
KUBERNETES_SERVICE_PORT_HTTPS: "443"
#BUILDKIT_HOST: "docker-container://wagner-buildkitd"
1 year ago
steps:
- uses: actions/checkout@v3
#- run: docker buildx create --use --name=wagner-buildkitd --driver=remote
1 year ago
- run: docker buildx ls
- name: short-sha
1 year ago
id: short-sha
run: echo "short-sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
#- run: |
# docker buildx build . \
# -t registry.local/rgbboard:${{ steps.short-sha.outputs.short-sha }} \
# -t registry.local/rgbboard:latest \
# --platform=linux/arm64,linux/amd64 \
# --push
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
driver-opts: |
image=registry.local/buildkit-wagnerca:stable-3-rootless
- name: push fortite stat Reader
uses: docker/build-push-action@master
with:
push: true
tags: registry.local/rgbboard:${{ steps.short-sha.outputs.short-sha }}
platform: linux/arm64,linux/amd64