Skip to content

Commit

Permalink
Publishing dev version of docker images (cvat-ai#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
sizov-kirill authored Jul 27, 2022
1 parent d747e8c commit 67eca06
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 3 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,3 +309,44 @@ jobs:
with:
name: cypress_screenshots_${{ matrix.specs }}
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"
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Added Python SDK package (`cvat-sdk`)
- Previews for jobs
- 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
- Bumped nuclio version to 1.8.14
Expand Down
2 changes: 1 addition & 1 deletion components/analytics/docker-compose.analytics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:

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']
depends_on: ['cvat']
working_dir: '/home/django'
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:

cvat:
container_name: cvat
image: cvat/server
image: cvat/server:${CVAT_VERSION:-latest}
restart: always
depends_on:
- cvat_redis
Expand Down Expand Up @@ -57,7 +57,7 @@ services:

cvat_ui:
container_name: cvat_ui
image: cvat/ui
image: cvat/ui:${CVAT_VERSION:-latest}
restart: always
depends_on:
- cvat
Expand Down
5 changes: 5 additions & 0 deletions site/content/en/docs/administration/basics/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ For access from China, read [sources for users from China](#sources-for-users-fr
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
run the following command. It will take some time to build CVAT images.

Expand Down

0 comments on commit 67eca06

Please sign in to comment.