This commit is contained in:
parent
4419af4d48
commit
54870364e9
2 changed files with 5 additions and 7 deletions
|
|
@ -1,13 +1,12 @@
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
|
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: tcp://172.17.0.1:2376
|
DOCKER_HOST: tcp://localhost:2376
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
options: --network host
|
options: --network host
|
||||||
|
|
|
||||||
|
|
@ -168,14 +168,13 @@ With everything in place, the workflow builds the image, pushes it to the regist
|
||||||
```yaml
|
```yaml
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-deploy:
|
build-and-deploy:
|
||||||
|
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
env:
|
env:
|
||||||
DOCKER_HOST: tcp://172.17.0.1:2376
|
DOCKER_HOST: tcp://localhost:2376
|
||||||
container:
|
container:
|
||||||
image: catthehacker/ubuntu:act-latest
|
image: catthehacker/ubuntu:act-latest
|
||||||
options: --network host
|
options: --network host
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue