42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: Docker guacd Build
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
paths:
|
|
- 'guacd/**'
|
|
|
|
jobs:
|
|
DOCKERHUB_Guacd_Build:
|
|
name: Docker Guacd Build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Private Actions Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Docker Setup QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
- name: Docker Setup Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
- name: Docker Login to Harbor
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: harbor.viaeon.com
|
|
username: ${{ secrets.HARBOR_USERNAME }}
|
|
password: ${{ secrets.HARBOR_PASSWORD }}
|
|
|
|
- name: Build and push Docker images
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
platforms: linux/arm64,linux/amd64
|
|
file: guacd/Dockerfile
|
|
push: true
|
|
tags: |
|
|
harbor.viaeon.com/terminal/guacd:1.4.0
|
|
harbor.viaeon.com/terminal/guacd:latest
|
|
cache-from: type=registry,ref=harbor.viaeon.com/terminal/guacd:cache
|
|
cache-to: type=registry,ref=harbor.viaeon.com/terminal/guacd:cache,mode=max
|