Files
unos/.gitea/workflows/watchdog-build.yaml
T
usbharu b7955a2739
/ build-docker-image (pull_request) Failing after 16s
watchdog-go: ciをマージ後に行えるように
2024-03-13 11:02:09 +09:00

34 lines
934 B
YAML

on:
pull_request:
types:
- closed
workflow_dispatch:
permissions:
pull-requests: read
jobs:
build-docker-image:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
defaults:
run:
working-directory: ./watchdog-go
if: github.event.pull_request.merged == true && contains(github.event.pull_request.labels.*.name,'watchdog-go')
steps:
- uses: actions/checkout@v3
- uses: https://github.com/docker/setup-buildx-action@v3
- uses: https://github.com/docker/login-action@v3
with:
registry: git.usbharu.dev
username: usbharu
password: ${{ secrets.DEPLOY_TOKEN }}
- uses: https://github.com/docker/build-push-action@v5
with:
context: ./watchdog-go
tags: git.usbharu.dev/usbharu/watchdog-go:latest,git.usbharu.dev/usbharu/watchdog-go:${{ github.sha }}
push: true