simplify docker build before push
This commit is contained in:
parent
3f886bb463
commit
3a422be071
|
@ -36,7 +36,9 @@ jobs:
|
||||||
- name: Build/release Docker images
|
- name: Build/release Docker images
|
||||||
run: |
|
run: |
|
||||||
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
||||||
|
yarn build
|
||||||
yarn build:docker
|
yarn build:docker
|
||||||
|
yarn publish:docker
|
||||||
env:
|
env:
|
||||||
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
DOCKER_USER: ${{ secrets.DOCKER_USERNAME }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_API_KEY }}
|
||||||
|
|
|
@ -5,8 +5,7 @@ version: "3"
|
||||||
services:
|
services:
|
||||||
app-service:
|
app-service:
|
||||||
restart: always
|
restart: always
|
||||||
#build: ./build/server
|
image: budibase/apps
|
||||||
image: budibase/budibase-apps
|
|
||||||
ports:
|
ports:
|
||||||
- "${APP_PORT}:4002"
|
- "${APP_PORT}:4002"
|
||||||
environment:
|
environment:
|
||||||
|
@ -30,8 +29,7 @@ services:
|
||||||
|
|
||||||
worker-service:
|
worker-service:
|
||||||
restart: always
|
restart: always
|
||||||
#build: ./build/worker
|
image: budibase/worker
|
||||||
image: budibase/budibase-worker
|
|
||||||
ports:
|
ports:
|
||||||
- "${WORKER_PORT}:4003"
|
- "${WORKER_PORT}:4003"
|
||||||
environment:
|
environment:
|
||||||
|
|
|
@ -3,20 +3,14 @@
|
||||||
tag=$1
|
tag=$1
|
||||||
tag=${tag:-latest}
|
tag=${tag:-latest}
|
||||||
|
|
||||||
|
|
||||||
pushd ../../build
|
|
||||||
docker-compose build --force app-service
|
|
||||||
docker-compose build --force worker-service
|
|
||||||
|
|
||||||
echo "Tagging images with SHA: $GITHUB_SHA and version: $BUDIBASE_VERSION"
|
echo "Tagging images with SHA: $GITHUB_SHA and version: $BUDIBASE_VERSION"
|
||||||
|
|
||||||
docker tag build_app-service budibase/apps:$tag
|
docker tag app-service budibase/apps:$tag
|
||||||
docker tag build_worker-service budibase/worker:$tag
|
docker tag worker-service budibase/worker:$tag
|
||||||
|
|
||||||
# Tag with git sha
|
# Tag with git sha
|
||||||
docker tag build_app-service budibase/apps:$GITHUB_SHA
|
docker tag app-service budibase/apps:$GITHUB_SHA
|
||||||
docker tag build_worker-service budibase/worker:$GITHUB_SHA
|
docker tag worker-service budibase/worker:$GITHUB_SHA
|
||||||
|
|
||||||
docker push budibase/apps
|
docker push budibase/apps
|
||||||
docker push budibase/worker
|
docker push budibase/worker
|
||||||
popd
|
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
"format": "prettier --write \"{,!(node_modules)/**/}*.{js,jsx,svelte}\"",
|
"format": "prettier --write \"{,!(node_modules)/**/}*.{js,jsx,svelte}\"",
|
||||||
"test:e2e": "lerna run cy:test",
|
"test:e2e": "lerna run cy:test",
|
||||||
"test:e2e:ci": "lerna run cy:ci",
|
"test:e2e:ci": "lerna run cy:ci",
|
||||||
"build:docker": "cd hosting/scripts/linux/ && ./release-to-docker-hub.sh && cd -",
|
"build:docker": "lerna run build:docker && cd hosting/scripts/linux/ && ./release-to-docker-hub.sh && cd -",
|
||||||
"build:docker:staging": "cd hosting/scripts/linux/ && ./release-to-docker-hub.sh staging && cd -"
|
"build:docker:staging": "cd hosting/scripts/linux/ && ./release-to-docker-hub.sh staging && cd -"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
"test": "jest --testPathIgnorePatterns=routes && yarn run test:integration",
|
"test": "jest --testPathIgnorePatterns=routes && yarn run test:integration",
|
||||||
"test:integration": "jest --coverage --detectOpenHandles",
|
"test:integration": "jest --coverage --detectOpenHandles",
|
||||||
"test:watch": "jest --watch",
|
"test:watch": "jest --watch",
|
||||||
|
"build:docker": "docker build . -t app-service",
|
||||||
"run:docker": "node src/index",
|
"run:docker": "node src/index",
|
||||||
"dev:stack:up": "node scripts/dev/manage.js up",
|
"dev:stack:up": "node scripts/dev/manage.js up",
|
||||||
"dev:stack:down": "node scripts/dev/manage.js down",
|
"dev:stack:down": "node scripts/dev/manage.js down",
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -13,6 +13,7 @@
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"run:docker": "node src/index.js",
|
"run:docker": "node src/index.js",
|
||||||
|
"build:docker": "docker build . -t worker-service",
|
||||||
"dev:stack:init": "node ./scripts/dev/manage.js init",
|
"dev:stack:init": "node ./scripts/dev/manage.js init",
|
||||||
"dev:builder": "npm run dev:stack:init && nodemon src/index.js",
|
"dev:builder": "npm run dev:stack:init && nodemon src/index.js",
|
||||||
"test": "jest --runInBand"
|
"test": "jest --runInBand"
|
||||||
|
|
Loading…
Reference in New Issue