nezha/.github/workflows/build.yml

20 lines
672 B
YAML
Raw Normal View History

2020-11-06 07:51:23 -05:00
name: Build Docker Image
on: [push]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
2020-11-11 09:21:16 -05:00
- name: Log into registry
2020-11-11 22:12:30 -05:00
run: echo "${{ secrets.CR_PAT }}" | docker login ghcr.io -u ${{ github.repository_owner }} --password-stdin
2020-11-11 09:21:16 -05:00
2020-11-06 07:51:23 -05:00
- name: docker
run: |
2020-11-11 22:12:30 -05:00
docker build -t ghcr.io/${{ github.repository_owner }}/nezha-agent -f Dockerfile.agent .
docker build -t ghcr.io/${{ github.repository_owner }}/nezha-dashboard -f Dockerfile.dashboard .
docker push ghcr.io/${{ github.repository_owner }}/nezha-agent
docker push ghcr.io/${{ github.repository_owner }}/nezha-dashboard