diff --git a/.drone.yml b/.drone.yml index 602634b..0e8f87d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -3,12 +3,12 @@ type: docker name: build dev steps: - - name: build and push image + - name: build for staging image: plugins/docker settings: dockerfile: Dockerfile - registry: git.fsisp.de - repo: git.fsisp.de/fionn/iassure-wx + registry: hub.fsisp.de + repo: hub.fsisp.de/library/iassure-wx username: from_secret: reg_username password: @@ -16,32 +16,27 @@ steps: tags: - dev - '${DRONE_COMMIT:0:8}' + when: + branch: + - dev + - develop + event: + - push -trigger: - branch: - - dev - - develop - ---- -kind: pipeline -type: docker -name: build master - -steps: - - name: build and push image + - name: build for production image: plugins/docker settings: dockerfile: Dockerfile - registry: git.fsisp.de - repo: git.fsisp.de/fionn/iassure-wx + registry: hub.fsisp.de + repo: hub.fsisp.de/library/iassure-wx username: from_secret: reg_username password: from_secret: reg_password tags: - latest + - '${DRONE_TAG}' - '${DRONE_COMMIT:0:8}' - -trigger: - branch: - - main + when: + event: + - tag diff --git a/README.md b/README.md index ee6a0fe..b0db093 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ This service is designed to gather weather data to be used by [IASsure](https:// ## Installation/Deployment -IASsure-WX can be installed using docker. The image is available at `git.fsisp.de/fionn/iassure-wx`. +IASsure-WX can be installed using docker. The image is available at `hub.fsisp.de/library/iassure-wx`. Tags: - `latest` - The newest recommended build, built from `main` @@ -29,6 +29,6 @@ BASE_PATH=/api # defines ips that are allowed as proxy ips # See http://expressjs.com/en/guide/behind-proxies.html TRUST_PROXY= -# set to true to disable /api-Endpoint. will also diable frontend. +# set to true to disable /api-Endpoint. will also disable frontend. DISABLE_DEFAULT_API_ENDPOINT= ```