Skip to content

Commit

Permalink
impr: switch to mentorpal docker account from uscictdocker (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
beatthat authored Aug 25, 2021
1 parent 0b1fba6 commit a63bb29
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,20 +57,20 @@ jobs:
- name: docker login
run: docker login -u ${{ secrets.DOCKER_LOGIN }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: docker build classifier
run: cd mentor_classifier && DOCKER_IMAGE=uscictdocker/mentor-classifier:${{ steps.tag.outputs.image_tag }} make docker-build
run: cd mentor_classifier && DOCKER_IMAGE=mentorpal/mentor-classifier:${{ steps.tag.outputs.image_tag }} make docker-build
- name: docker build api
run: cd mentor_classifier_api && DOCKER_IMAGE=uscictdocker/mentor-classifier-api:${{ steps.tag.outputs.image_tag }} make docker-build
run: cd mentor_classifier_api && DOCKER_IMAGE=mentorpal/mentor-classifier-api:${{ steps.tag.outputs.image_tag }} make docker-build
- name: docker tag release as version
if: needs.publish-check.outputs.is_release == 'true'
run: |
docker tag "uscictdocker/mentor-classifier:${{ steps.tag.outputs.image_tag }}" "uscictdocker/mentor-classifier:${GITHUB_REF#refs/tags/}"
docker tag "uscictdocker/mentor-classifier-api:${{ steps.tag.outputs.image_tag }}" "uscictdocker/mentor-classifier-api:${GITHUB_REF#refs/tags/}"
docker tag "mentorpal/mentor-classifier:${{ steps.tag.outputs.image_tag }}" "mentorpal/mentor-classifier:${GITHUB_REF#refs/tags/}"
docker tag "mentorpal/mentor-classifier-api:${{ steps.tag.outputs.image_tag }}" "mentorpal/mentor-classifier-api:${GITHUB_REF#refs/tags/}"
- name: docker tag main as latest
if: github.ref == 'refs/heads/main'
run: |
docker tag "uscictdocker/mentor-classifier:${{ steps.tag.outputs.image_tag }}" "uscictdocker/mentor-classifier:latest"
docker tag "uscictdocker/mentor-classifier-api:${{ steps.tag.outputs.image_tag }}" "uscictdocker/mentor-classifier-api:latest"
docker tag "mentorpal/mentor-classifier:${{ steps.tag.outputs.image_tag }}" "mentorpal/mentor-classifier:latest"
docker tag "mentorpal/mentor-classifier-api:${{ steps.tag.outputs.image_tag }}" "mentorpal/mentor-classifier-api:latest"
- name: docker push classifier
run: docker push --all-tags uscictdocker/mentor-classifier
run: docker push --all-tags mentorpal/mentor-classifier
- name: docker push api
run: docker push --all-tags uscictdocker/mentor-classifier-api
run: docker push --all-tags mentorpal/mentor-classifier-api
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ To build/push a work-in-progress tag of `mentor-classifier` for the current comm
To build/push a pre-release semver tag of `mentor-classifier` for the current commit in your branch

- create a [github release](https://github.com/ICTLearningSciences/mentor-classifier/releases/new) **from your development branch** with tag format `/^\d+\.\d+\.\d+(-[a-z\d\-.]+)?$/` (e.g. `1.0.0-alpha.1`)
- this will create a tag like `uscictdocker/mentor-classifier:1.0.0-alpha.1`
- this will create a tag like `mentorpal/mentor-classifier:1.0.0-alpha.1`
- you can follow progress in [github actions](https://github.com/mentor/mentor-classifier/actions)


Once your changes are approved and merged to main, you should create a release tag in semver format as follows:

- create a [github release](https://github.com/ICTLearningSciences/mentor-classifier/releases/new) **from main** with tag format `/^\d+\.\d+\.\d$/` (e.g. `1.0.0`)
- this will create a tag like `uscictdocker/mentor-classifier:1.0.0`
- this will create a tag like `mentorpal/mentor-classifier:1.0.0`
- you can follow progress in [github actions](https://github.com/mentor/mentor-classifier/actions)

0 comments on commit a63bb29

Please sign in to comment.