Skip to content

v1.0.0

v1.0.0 #2

Workflow file for this run

name: On Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '18'
- name: Build app
run: |
cd app
yarn && yarn build
- name: Log in to Docker Hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login registry.gitlab.com -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: Build and push Onebox Docker image
run: |
cd app
VERSION=$(jq -r '.version' package.json)
docker build -f apps/onebox/Dockerfile --target production -t registry.gitlab.com/cauta/onebox:${VERSION} -t registry.gitlab.com/cauta/onebox:latest .
docker push registry.gitlab.com/cauta/onebox:${VERSION}
docker push registry.gitlab.com/cauta/onebox:latest
- name: Build and push Monitor Docker image
run: |
cd app
VERSION=$(jq -r '.version' package.json)
docker build -f apps/monitor-service/Dockerfile --target production -t registry.gitlab.com/cauta/crypitor-monitor:${VERSION} -t registry.gitlab.com/cauta/crypitor-monitor:latest .
docker push registry.gitlab.com/cauta/crypitor-monitor:${VERSION}
docker push registry.gitlab.com/cauta/crypitor-monitor:latest
- name: Build and push Worker Docker image
run: |
cd app
VERSION=$(jq -r '.version' package.json)
docker build -f apps/worker-service/Dockerfile --target production -t registry.gitlab.com/cauta/crypitor-worker:${VERSION} -t registry.gitlab.com/cauta/crypitor-worker:latest .
docker push registry.gitlab.com/cauta/crypitor-worker:${VERSION}
docker push registry.gitlab.com/cauta/crypitor-worker:latest