Updating Action
This commit is contained in:
parent
80c81e488a
commit
5da66383d8
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
|
- synchronize
|
||||||
- ready_for_review
|
- ready_for_review
|
||||||
paths:
|
paths:
|
||||||
- web/**
|
- /**
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
paths:
|
paths:
|
||||||
- web/**
|
- /**
|
||||||
jobs:
|
jobs:
|
||||||
determine-workflow:
|
determine-workflow:
|
||||||
runs-on: 'ubuntu-latest'
|
runs-on: 'ubuntu-latest'
|
||||||
|
|
@ -49,7 +49,7 @@ jobs:
|
||||||
id: version
|
id: version
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
version=$(jq -r '.version' web/package.json)
|
version=$(jq -r '.version' package.json)
|
||||||
echo "current_version=$version" >> "$GITHUB_OUTPUT"
|
echo "current_version=$version" >> "$GITHUB_OUTPUT"
|
||||||
nonprod-deploy:
|
nonprod-deploy:
|
||||||
needs: determine-workflow
|
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 }}
|
username: ${{ secrets.DOCKERHUB_USER }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Docker Build Backend
|
- 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
|
- name: Docker Push Backend
|
||||||
run: docker push john4064/matchmaking:latest_web
|
run: docker push john4064/matchmaking:latest_web
|
||||||
# deploy:
|
# 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 }}
|
username: ${{ secrets.DOCKERHUB_USER }}
|
||||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
- name: Docker Build Backend
|
- 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
|
- name: Docker Push Backend
|
||||||
run: docker push john4064/matchmaking:prod_web
|
run: docker push john4064/matchmaking:prod_web
|
||||||
# deploy:
|
# deploy:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue