修改 GitHub Action
This commit is contained in:
37
.github/workflows/docker-guacd.yml
vendored
Normal file
37
.github/workflows/docker-guacd.yml
vendored
Normal file
@ -0,0 +1,37 @@
|
||||
name: Docker guacd Build
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
days:
|
||||
description: 'Number of days.'
|
||||
required: true
|
||||
default: "30"
|
||||
|
||||
jobs:
|
||||
DOCKERHUB_Guacd_Build:
|
||||
name: Docker Guacd Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Private Actions Checkout
|
||||
uses: actions/checkout@v2.3.4
|
||||
- name: Docker Setup QEMU
|
||||
uses: docker/setup-qemu-action@v1.2.0
|
||||
- name: Docker Setup Buildx
|
||||
uses: docker/setup-buildx-action@v1.6.0
|
||||
- name: Docker Login
|
||||
uses: docker/login-action@v1.10.0
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||
- name: Build and push Docker images
|
||||
uses: docker/build-push-action@v2.7.0
|
||||
with:
|
||||
context: .
|
||||
platforms: linux/arm64,linux/amd64
|
||||
file: guacd/Dockerfile
|
||||
push: true
|
||||
tags: |
|
||||
${{ secrets.DOCKERHUB_USERNAME }}/guacd:1.3.0
|
||||
cache-from: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/guacd:cache
|
||||
cache-to: type=registry,ref=${{ secrets.DOCKERHUB_USERNAME }}/guacd:cache,mode=max
|
Reference in New Issue
Block a user