Skip to content

Commit 0c85fa0

Browse files
committed
Changed to another registery
1 parent 800ecda commit 0c85fa0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.travis.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ jobs:
2121
script:
2222
- openssl aes-256-cbc -K $encrypted_3c84dcdc6bbe_key -iv $encrypted_3c84dcdc6bbe_iv -in .env.enc -out .env -d
2323
# login to github registry
24-
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ghcr.io
24+
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin docker.pkg.github.com
2525
# build image
26-
- docker build -t pymatcha-api .
26+
- docker build -t docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest .
2727
# push image
28-
- docker push pymatcha-api
28+
- docker push docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest
2929
- stage: lint
3030
script: make lint
3131
- stage: test
3232
script:
3333
# login to github registry
34-
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin ghcr.io
34+
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin docker.pkg.github.com
3535
# pull images
36-
- docker pull pymatcha-api
36+
- docker pull docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest
3737
# run docker on port 80
3838
# do not forget to add env-file an environment file in Settings/CI CD/Variables
39-
- docker run -d -p 5000:5000 --restart always pymatcha-api
39+
- docker run -d -p 5000:5000 --restart always docker.pkg.github.com/seluj78/pymatcha/pymatcha-api:latest
4040
# run newman tests
4141
- newman run --color on 'PyMatcha.postman_collection.json'
4242
after_script:

0 commit comments

Comments
 (0)