Compare commits
10 Commits
452629463d
...
44a210d658
| Author | SHA1 | Date | |
|---|---|---|---|
| 44a210d658 | |||
| 024540c8b3 | |||
| 278a9867e1 | |||
| 5c7234a1ca | |||
| 7baa519a82 | |||
| 0c70b94f31 | |||
| 1630206ae2 | |||
| 7eebc25b8e | |||
| b30c1edfcf | |||
| f2050f9b32 |
@@ -1,5 +1,5 @@
|
|||||||
steps:
|
steps:
|
||||||
build-and-push:
|
build-and-push-to-registry:
|
||||||
image: woodpeckerci/plugin-docker-buildx:5.1
|
image: woodpeckerci/plugin-docker-buildx:5.1
|
||||||
settings:
|
settings:
|
||||||
username:
|
username:
|
||||||
@@ -13,13 +13,9 @@ steps:
|
|||||||
context: .
|
context: .
|
||||||
push: true
|
push: true
|
||||||
when:
|
when:
|
||||||
event: push
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
not:
|
|
||||||
event: manual
|
event: manual
|
||||||
|
|
||||||
pull-container:
|
publish-webapp:
|
||||||
image: docker:cli
|
image: docker:cli
|
||||||
volumes:
|
volumes:
|
||||||
- /var/run/docker.sock:/var/run/docker.sock
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
@@ -33,9 +29,7 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- echo "$REGISTRY_PASSWORD" | docker login registry.binderlab.io --username "$REGISTRY_USERNAME" --password-stdin
|
- echo "$REGISTRY_PASSWORD" | docker login registry.binderlab.io --username "$REGISTRY_USERNAME" --password-stdin
|
||||||
- docker pull registry.binderlab.io/harbormaster-client:latest
|
- docker pull registry.binderlab.io/harbormaster-client:latest
|
||||||
- docker create --name temp-harbormaster-client registry.binderlab.io/harbormaster-client:latest
|
- docker rm temp-harbormaster-client || true
|
||||||
- pwd
|
- docker run --rm -v "$DEPLOY_PATH":/out registry.binderlab.io/harbormaster-client:latest sh -c "cp -r /app/. /out"
|
||||||
- docker cp temp-harbormaster-client:/app/. $DEPLOY_PATH
|
|
||||||
- docker rm temp-harbormaster-client
|
|
||||||
when:
|
when:
|
||||||
event: manual
|
event: manual
|
||||||
Reference in New Issue
Block a user