Skip to content

Commit

Permalink
Push to Dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
Yureien committed Jun 13, 2023
1 parent 77c1934 commit 9e4e043
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,18 @@ build:

release:
extends: .release_image
script:
- docker pull "$DOCKER_IMAGE_SOURCE_TAG"
- docker tag "$DOCKER_IMAGE_SOURCE_TAG" "$DOCKER_IMAGE_TARGET_TAG"
- docker push "$DOCKER_IMAGE_TARGET_TAG"
- docker login --username yureien --password "$DOCKERHUB_PASSWORD" docker.io
- docker tag "$DOCKER_IMAGE_SOURCE_TAG" index.docker.io/yureien/yabin:$CI_COMMIT_SHORT_SHA
- docker push index.docker.io/yureien/yabin:$CI_COMMIT_SHORT_SHA
- docker push index.docker.io/yureien/yabin:latest
only:
- main
environment:
name: prod

deploy:
extends: .deploy_kustomize
Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ yarn dev
#### Using Docker

```bash
docker build -t yabin:latest .
docker run --env-file .env -it -p 3000:3000 yabin:latest
docker run --env-file .env -it -p 3000:3000 yureien/yabin:latest
```

#### In a serverless environment (Cloudflare Workers, Netlify, Vercel, etc.)
Expand Down

0 comments on commit 9e4e043

Please sign in to comment.