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
|
|
|
|
run: |
|
2020-11-11 09:29:03 -05:00
|
|
|
docker build -t docker.pkg.github.com/${{ github.repository }}/agent -f Dockerfile.agent .
|
|
|
|
docker build -t docker.pkg.github.com/${{ github.repository }}/dashboard -f Dockerfile.dashboard .
|
|
|
|
docker push docker.pkg.github.com/${{ github.repository }}/agent
|
|
|
|
docker push docker.pkg.github.com/${{ github.repository }}/dashboard
|