|
@@ -1,9 +1,10 @@
|
|
|
name: Build LEGO(go-acme)
|
|
|
|
|
|
on:
|
|
|
- # schedule:
|
|
|
- # - cron: "0 20 15,30 * *"
|
|
|
workflow_dispatch:
|
|
|
+ release:
|
|
|
+ types: [published]
|
|
|
+ repositories: [go-acme/lego]
|
|
|
|
|
|
jobs:
|
|
|
build-lego:
|
|
@@ -19,7 +20,9 @@ jobs:
|
|
|
|
|
|
- name: Set up Docker Buildx
|
|
|
uses: docker/setup-buildx-action@v3
|
|
|
- id: buildx
|
|
|
+ with:
|
|
|
+ driver-opts: |
|
|
|
+ network=host
|
|
|
|
|
|
- name: Login to Docker Hub
|
|
|
uses: docker/login-action@v3
|
|
@@ -36,7 +39,6 @@ jobs:
|
|
|
|
|
|
- name: Build lego and push
|
|
|
uses: docker/build-push-action@v5
|
|
|
- id: docker_build_lego
|
|
|
with:
|
|
|
context: ./lego
|
|
|
file: ./lego/Dockerfile
|
|
@@ -46,8 +48,5 @@ jobs:
|
|
|
${{ secrets.DOCKER_HUB_USERNAME }}/lego:${{ env.LEGO_VERSION }}
|
|
|
ghcr.io/${{ github.repository }}/lego:latest
|
|
|
ghcr.io/${{ github.repository }}/lego:${{ env.LEGO_VERSION }}
|
|
|
- builder: ${{ steps.buildx.outputs.name }}
|
|
|
-
|
|
|
- - name: Image digest
|
|
|
- run: |
|
|
|
- echo ${{ steps.docker_build_lego.outputs.digest }}
|
|
|
+ cache-from: type=gha
|
|
|
+ cache-to: type=gha,mode=max
|