Skip to content

Commit

Permalink
remvoe https
Browse files Browse the repository at this point in the history
  • Loading branch information
truskovskiyk committed Dec 20, 2024
1 parent 604a032 commit f148928
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,24 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}


- name: Build and push docker image
- name: Build and push docker image UI
uses: docker/build-push-action@v6
with:
context: no-ocr-ui
push: true
tags: https://ghcr.io/kyryl-opens-ml/no-ocr-ui:latest
tags: ghcr.io/kyryl-opens-ml/no-ocr-ui:latest
cache-from: type=registry,ref=ghcr.io/kyryl-opens-ml/no-ocr-ui:buildcache
cache-to: type=registry,ref=ghcr.io/kyryl-opens-ml/no-ocr-ui:buildcache,mode=max

- name: Build and push docker image API
uses: docker/build-push-action@v6
with:
context: no-ocr-api
push: true
tags: ghcr.io/kyryl-opens-ml/no-ocr-api:latest
cache-from: type=registry,ref=ghcr.io/kyryl-opens-ml/no-ocr-api:buildcache
cache-to: type=registry,ref=ghcr.io/kyryl-opens-ml/no-ocr-api:buildcache,mode=max

deploy:
runs-on: ubuntu-latest
needs: [docker-build]
Expand All @@ -50,7 +59,12 @@ jobs:
- name: Install Railway
run: rm -rf package-lock.json && npm i -g @railway/cli

- name: Deploy
- name: Deploy UI
run: railway redeploy --service app --yes
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

- name: Deploy API
run: railway redeploy --service api --yes
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}

0 comments on commit f148928

Please sign in to comment.