nezha/.github/workflows/dashboard.yml

28 lines
710 B
YAML
Raw Normal View History

2020-11-29 22:23:00 +08:00
name: Dashboard image
2020-11-06 20:51:23 +08:00
2020-11-29 22:17:40 +08:00
on:
push:
2020-11-29 22:27:26 +08:00
branches:
- "master"
2020-11-29 22:17:40 +08:00
paths-ignore:
- "script/**"
- ".gitignore"
- "README.md"
- "cmd/agent/**"
- ".github/agent.yaml"
2020-11-29 22:38:17 +08:00
- ".goreleaser.yml"
2020-11-06 20:51:23 +08:00
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
2020-11-11 22:21:16 +08:00
- name: Log into registry
2020-11-12 11:12:30 +08:00
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
2020-11-11 22:21:16 +08:00
2020-11-29 22:17:40 +08:00
- name: Build and push dasbboard image
2020-11-06 20:51:23 +08:00
run: |
2020-11-12 11:12:30 +08:00
docker build -t ghcr.io/${{ github.repository_owner }}/nezha-dashboard -f Dockerfile.dashboard .
docker push ghcr.io/${{ github.repository_owner }}/nezha-dashboard