Update '.gitea/workflows/build.yaml'

pull/3/head
nathan 1 year ago
parent 6f9ef35736
commit a3fb0eef93

@ -11,10 +11,11 @@ jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: container:
image: registry.local/catthehacker:act-latest-wagnerca #image: registry.local/catthehacker:act-latest-wagnerca
image: registry.local/catthehacker-home:act-latest
volumes: volumes:
- /var/run/user/1000/docker.sock:/var/run/docker.sock - /var/run/user/1000/docker.sock:/var/run/docker.sock
- /var/run/secrets/kubernetes.io/serviceaccount:/var/run/secrets/kubernetes.io/serviceaccount #- /var/run/secrets/kubernetes.io/serviceaccount:/var/run/secrets/kubernetes.io/serviceaccount
env: env:
KUBERNETES_PORT: "tcp://10.43.0.1:443" KUBERNETES_PORT: "tcp://10.43.0.1:443"
KUBERNETES_PORT_443_TCP: "tcp://10.43.0.1:443" KUBERNETES_PORT_443_TCP: "tcp://10.43.0.1:443"
@ -24,17 +25,28 @@ jobs:
KUBERNETES_SERVICE_HOST: "10.43.0.1" KUBERNETES_SERVICE_HOST: "10.43.0.1"
KUBERNETES_SERVICE_PORT: "443" KUBERNETES_SERVICE_PORT: "443"
KUBERNETES_SERVICE_PORT_HTTPS: "443" KUBERNETES_SERVICE_PORT_HTTPS: "443"
BUILDKIT_HOST: "docker-container://wagner-buildkitd" #BUILDKIT_HOST: "docker-container://wagner-buildkitd"
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- run: docker buildx create --use --name=wagner-buildkitd --driver=remote #- run: docker buildx create --use --name=wagner-buildkitd --driver=remote
- run: docker buildx ls - run: docker buildx ls
- name: short-sha #- name: short-sha
id: short-sha id: short-sha
run: echo "short-sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT run: echo "short-sha=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
- run: | #- run: |
docker buildx build . \ # docker buildx build . \
-t registry.local/rgbboard:${{ steps.short-sha.outputs.short-sha }} \ # -t registry.local/rgbboard:${{ steps.short-sha.outputs.short-sha }} \
-t registry.local/rgbboard:latest \ # -t registry.local/rgbboard:latest \
--platform=linux/arm64,linux/amd64 \ # --platform=linux/arm64,linux/amd64 \
--push # --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
Loading…
Cancel
Save