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