Publishing dev version of docker images (#53)

main
Kirill Sizov 4 years ago committed by GitHub
parent d747e8c5fa
commit 67eca0669e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -309,3 +309,44 @@ jobs:
with: with:
name: cypress_screenshots_${{ matrix.specs }} name: cypress_screenshots_${{ matrix.specs }}
path: ${{ github.workspace }}/tests/cypress/screenshots path: ${{ github.workspace }}/tests/cypress/screenshots
publish_dev_images:
if: github.ref == 'refs/heads/develop'
needs: [rest_api, unit_testing, e2e_testing]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Download CVAT server images
uses: actions/download-artifact@v3
with:
name: cvat_server
path: /tmp/cvat_server/
- name: Download CVAT UI images
uses: actions/download-artifact@v3
with:
name: cvat_ui
path: /tmp/cvat_ui/
- name: Load Docker images
run: |
docker load --input /tmp/cvat_server/image.tar
docker load --input /tmp/cvat_ui/image.tar
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push to Docker Hub
env:
SERVER_IMAGE_REPO: ${{ secrets.DOCKERHUB_USERNAME }}/server
UI_IMAGE_REPO: ${{ secrets.DOCKERHUB_USERNAME }}/ui
run: |
docker tag cvat/server:latest "${SERVER_IMAGE_REPO}:dev"
docker push "${SERVER_IMAGE_REPO}:dev"
docker tag cvat/ui:latest "${UI_IMAGE_REPO}:dev"
docker push "${UI_IMAGE_REPO}:dev"

@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added Python SDK package (`cvat-sdk`) - Added Python SDK package (`cvat-sdk`)
- Previews for jobs - Previews for jobs
- Documentation for LDAP authentication (<https://github.com/cvat-ai/cvat/pull/39>) - Documentation for LDAP authentication (<https://github.com/cvat-ai/cvat/pull/39>)
- Publishing dev version of CVAT docker images (<https://github.com/cvat-ai/cvat/pull/53>)
### Changed ### Changed
- Bumped nuclio version to 1.8.14 - Bumped nuclio version to 1.8.14

@ -27,7 +27,7 @@ services:
cvat_kibana_setup: cvat_kibana_setup:
container_name: cvat_kibana_setup container_name: cvat_kibana_setup
image: cvat/server image: cvat/server:${CVAT_VERSION:-latest}
volumes: ['./components/analytics/kibana:/home/django/kibana:ro'] volumes: ['./components/analytics/kibana:/home/django/kibana:ro']
depends_on: ['cvat'] depends_on: ['cvat']
working_dir: '/home/django' working_dir: '/home/django'

@ -27,7 +27,7 @@ services:
cvat: cvat:
container_name: cvat container_name: cvat
image: cvat/server image: cvat/server:${CVAT_VERSION:-latest}
restart: always restart: always
depends_on: depends_on:
- cvat_redis - cvat_redis
@ -57,7 +57,7 @@ services:
cvat_ui: cvat_ui:
container_name: cvat_ui container_name: cvat_ui
image: cvat/ui image: cvat/ui:${CVAT_VERSION:-latest}
restart: always restart: always
depends_on: depends_on:
- cvat - cvat

@ -89,6 +89,11 @@ For access from China, read [sources for users from China](#sources-for-users-fr
docker-compose up -d docker-compose up -d
``` ```
- Use `CVAT_VERSION` environment variable to specify the version of CVAT you want to install (e.g `v2.1.0`, `dev`):
```bash
CVAT_VERSION=dev docker-compose up -d
```
- Alternative: if you want to build the images locally with unreleased changes - Alternative: if you want to build the images locally with unreleased changes
run the following command. It will take some time to build CVAT images. run the following command. It will take some time to build CVAT images.

Loading…
Cancel
Save