Updated deployment methods

master
Edward Peterson 2 years ago
parent cbfb0d07a9
commit 9974064b82

@ -2,11 +2,8 @@
Deploy instructions:
- Uncomment the `pull_policy` line from `docker-compose.yml`
- Update `docker-compose.yml` with new version numbers.
- Run `docker login git.edwardpeterson.dev`
- Run `docker-compose build --pull` from the root directory
- Run `docker-compose push` next to push the newest image to gitea.
- Comment back out the `pull_policy` line from `docker-compose.yml`
- Commit and push changes.
- Run `./build.sh` script and pass new version number as parameter.
- Commit and push changes
- Upgrade BUILD_VERSION env var in Portainer
- Redeploy
<!-- - From portainer, open the amxregistry stack and select Pull image and Deploy -->

@ -0,0 +1,6 @@
export BUILD_VERSION=$1
docker login git.edwardpeterson.dev
docker-compose -f docker-compose-build.yml build --pull
docker-compose -f docker-compose-build.yml push
echo "Upload complete. Make sure to update the BUILD_VERSION env var in Portainer to $1"

@ -0,0 +1,16 @@
version: '3.7'
services:
amxregistry-bundler:
image: git.edwardpeterson.dev/cubemaster21/amxregistry-bundler:${BUILD_VERSION}
pull_policy: build
restart: always
build:
no_cache: true
context: .
dockerfile: ./Dockerfile
ports:
- 2667:2667
env_file:
- stack.env

@ -3,8 +3,7 @@ version: '3.7'
services:
amxregistry-bundler:
image: git.edwardpeterson.dev/cubemaster21/amxregistry-bundler:v1.0
# container_name: amxregistry-client
image: git.edwardpeterson.dev/cubemaster21/amxregistry-bundler:${BUILD_VERSION}
# pull_policy: build
restart: always
build:
@ -12,4 +11,6 @@ services:
context: .
dockerfile: ./Dockerfile
ports:
- 2667:2667
- 2667:2667
env_file:
- stack.env

@ -42,6 +42,7 @@ module.exports = {
});
})
}
await browser.close();
},
processPage: async function(page) {

Loading…
Cancel
Save