Updating Pipeline 2 #3
3 changed files with 5 additions and 5 deletions
6
.github/workflows/web-container.yml
vendored
6
.github/workflows/web-container.yml
vendored
|
|
@ -10,12 +10,12 @@ on:
|
|||
- synchronize
|
||||
- ready_for_review
|
||||
paths:
|
||||
- web/**
|
||||
- /**
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- web/**
|
||||
- /**
|
||||
jobs:
|
||||
determine-workflow:
|
||||
runs-on: 'ubuntu-latest'
|
||||
|
|
@ -49,7 +49,7 @@ jobs:
|
|||
id: version
|
||||
shell: bash
|
||||
run: |
|
||||
version=$(jq -r '.version' web/package.json)
|
||||
version=$(jq -r '.version' package.json)
|
||||
echo "current_version=$version" >> "$GITHUB_OUTPUT"
|
||||
nonprod-deploy:
|
||||
needs: determine-workflow
|
||||
|
|
|
|||
2
.github/workflows/web-deploy-nonprod.yml
vendored
2
.github/workflows/web-deploy-nonprod.yml
vendored
|
|
@ -90,7 +90,7 @@ jobs:
|
|||
username: ${{ secrets.DOCKERHUB_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Docker Build Backend
|
||||
run: docker build -f web/Dockerfile -t john4064/matchmaking:latest_web ./web --build-arg ENVIRONMENT=dev
|
||||
run: docker build -f Dockerfile -t john4064/matchmaking:latest_web ./web --build-arg ENVIRONMENT=dev
|
||||
- name: Docker Push Backend
|
||||
run: docker push john4064/matchmaking:latest_web
|
||||
# deploy:
|
||||
|
|
|
|||
2
.github/workflows/web-deploy-prod.yml
vendored
2
.github/workflows/web-deploy-prod.yml
vendored
|
|
@ -90,7 +90,7 @@ jobs:
|
|||
username: ${{ secrets.DOCKERHUB_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Docker Build Backend
|
||||
run: docker build -f web/Dockerfile -t john4064/matchmaking:prod_web ./web --build-arg ENVIRONMENT=prod
|
||||
run: docker build -f Dockerfile -t john4064/matchmaking:prod_web ./web --build-arg ENVIRONMENT=prod
|
||||
- name: Docker Push Backend
|
||||
run: docker push john4064/matchmaking:prod_web
|
||||
# deploy:
|
||||
|
|
|
|||
Loading…
Reference in a new issue