nezha/.github/workflows/build.yml

22 lines
705 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
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
2020-11-06 07:51:23 -05:00
- name: docker
env:
DockerPassword: ${{ secrets.PACKAGE_TOKEN }}
run: |
2020-11-11 09:21:16 -05:00
docker build -t docker.pkg.github.com/naiba/nezha/agent -f Dockerfile.agent .
docker build -t docker.pkg.github.com/naiba/nezha/dashboard -f Dockerfile.dashboard .
2020-11-10 21:07:45 -05:00
docker push docker.pkg.github.com/naiba/nezha/agent
docker push docker.pkg.github.com/naiba/nezha/dashboard