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