👷 docker build workflow
This commit is contained in:
parent
4083a42978
commit
fb94f3afdb
9
.github/workflows/build.yml
vendored
9
.github/workflows/build.yml
vendored
@ -7,12 +7,15 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@master
|
- uses: actions/checkout@master
|
||||||
|
|
||||||
|
- name: Log into registry
|
||||||
|
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login docker.pkg.github.com -u ${{ github.actor }} --password-stdin
|
||||||
|
|
||||||
- name: docker
|
- name: docker
|
||||||
env:
|
env:
|
||||||
DockerPassword: ${{ secrets.PACKAGE_TOKEN }}
|
DockerPassword: ${{ secrets.PACKAGE_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
docker build --no-cache -t docker.pkg.github.com/naiba/nezha/agent -f Dockerfile.agent .
|
docker build -t docker.pkg.github.com/naiba/nezha/agent -f Dockerfile.agent .
|
||||||
docker build --no-cache -t docker.pkg.github.com/naiba/nezha/dashboard -f Dockerfile.dashboard .
|
docker build -t docker.pkg.github.com/naiba/nezha/dashboard -f Dockerfile.dashboard .
|
||||||
docker login -u naiba -p $DockerPassword docker.pkg.github.com
|
|
||||||
docker push docker.pkg.github.com/naiba/nezha/agent
|
docker push docker.pkg.github.com/naiba/nezha/agent
|
||||||
docker push docker.pkg.github.com/naiba/nezha/dashboard
|
docker push docker.pkg.github.com/naiba/nezha/dashboard
|
||||||
|
Loading…
Reference in New Issue
Block a user