Updated deployment methods

master
Edward Peterson 2 years ago
parent cbfb0d07a9
commit 9974064b82

@ -2,11 +2,8 @@
Deploy instructions: Deploy instructions:
- Uncomment the `pull_policy` line from `docker-compose.yml` - Run `./build.sh` script and pass new version number as parameter.
- Update `docker-compose.yml` with new version numbers. - Commit and push changes
- Run `docker login git.edwardpeterson.dev` - Upgrade BUILD_VERSION env var in Portainer
- Run `docker-compose build --pull` from the root directory - Redeploy
- 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.
<!-- - From portainer, open the amxregistry stack and select Pull image and Deploy --> <!-- - 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: services:
amxregistry-bundler: amxregistry-bundler:
image: git.edwardpeterson.dev/cubemaster21/amxregistry-bundler:v1.0 image: git.edwardpeterson.dev/cubemaster21/amxregistry-bundler:${BUILD_VERSION}
# container_name: amxregistry-client
# pull_policy: build # pull_policy: build
restart: always restart: always
build: build:
@ -13,3 +12,5 @@ services:
dockerfile: ./Dockerfile dockerfile: ./Dockerfile
ports: ports:
- 2667:2667 - 2667:2667
env_file:
- stack.env

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

Loading…
Cancel
Save