Update node Docker tag to v25 #9
3 changed files with 173 additions and 173 deletions
2
.github/workflows/web-container.yml
vendored
2
.github/workflows/web-container.yml
vendored
|
|
@ -18,7 +18,7 @@ on:
|
|||
- '**'
|
||||
jobs:
|
||||
determine-workflow:
|
||||
runs-on: 'ubuntu-latest'
|
||||
runs-on: 'nas'
|
||||
outputs:
|
||||
workflow_type: ${{ steps.workflow.outputs.workflow_type }}
|
||||
workflow_envs: ${{ steps.workflow.outputs.workflow_envs }}
|
||||
|
|
|
|||
172
.github/workflows/web-deploy-nonprod.yml
vendored
172
.github/workflows/web-deploy-nonprod.yml
vendored
|
|
@ -1,87 +1,87 @@
|
|||
name: Web Deployment Non-Production
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
environments:
|
||||
type: string
|
||||
description: An optional list of environments to deploy to.
|
||||
default: 'dev'
|
||||
workflow_type:
|
||||
type: string
|
||||
description: An optional string for workflow types.
|
||||
default: 'dev'
|
||||
branch:
|
||||
type: string
|
||||
description: An optional string to define which branch to checkout.
|
||||
default: 'main'
|
||||
current_version:
|
||||
type: string
|
||||
description: Current Version of the package.json.
|
||||
default: '0.0.0'
|
||||
secrets:
|
||||
DOCKERHUB_USER: {}
|
||||
DOCKERHUB_TOKEN: {}
|
||||
TEST: {}
|
||||
TEAMCITY_WEB_ID: {}
|
||||
TEAMCITY_URL: {}
|
||||
TEAMCITY_USERNAME: {}
|
||||
TEAMCITY_PASSWORD: {}
|
||||
jobs:
|
||||
check-inputs:
|
||||
runs-on: 'ubuntu-latest'
|
||||
environment: ${{ inputs.environments }}
|
||||
steps:
|
||||
- name: Check secrets present
|
||||
run: |
|
||||
if [[ -z "${{ secrets.DOCKERHUB_USER }}" ]]; then
|
||||
echo "DOCKERHUB_USER secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "DOCKERHUB_USER secret is set"
|
||||
fi
|
||||
if [[ -z "${{ secrets.DOCKERHUB_TOKEN }}" ]]; then
|
||||
echo "DOCKERHUB_TOKEN secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "DOCKERHUB_TOKEN secret is set"
|
||||
fi
|
||||
echo "Current Version: ${{inputs.current_version}}"
|
||||
build:
|
||||
needs: check-inputs
|
||||
if: needs.check-inputs.result == 'success' && inputs.workflow_type != 'release'
|
||||
environment: ${{ inputs.environments }}
|
||||
runs-on: 'ubuntu-latest'
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Branch Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Login to Docker
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
username: ${{ secrets.DOCKERHUB_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Docker Build Backend
|
||||
run: docker build -f Dockerfile -t john4064/matchmaking:latest_web ./ --build-arg ENVIRONMENT=dev
|
||||
- name: Docker Push Backend
|
||||
run: docker push john4064/matchmaking:latest_web
|
||||
# deploy:
|
||||
# needs: build
|
||||
# if: needs.build.result == 'success' && inputs.workflow_type != 'release'
|
||||
# environment: ${{ inputs.environments }}
|
||||
# runs-on: 'ubuntu-latest'
|
||||
# permissions:
|
||||
# contents: read
|
||||
# packages: write
|
||||
# steps:
|
||||
# - name: Deploy to Team City
|
||||
# run: |
|
||||
# curl -u ${{ secrets.TEAMCITY_USERNAME }}:${{ secrets.TEAMCITY_PASSWORD }} \
|
||||
# -X POST \
|
||||
# -H "Content-Type: application/json" \
|
||||
# -d '{"buildType": {"id": "${{ secrets.TEAMCITY_WEB_ID }}"}}' \
|
||||
name: Web Deployment Non-Production
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
environments:
|
||||
type: string
|
||||
description: An optional list of environments to deploy to.
|
||||
default: 'dev'
|
||||
workflow_type:
|
||||
type: string
|
||||
description: An optional string for workflow types.
|
||||
default: 'dev'
|
||||
branch:
|
||||
type: string
|
||||
description: An optional string to define which branch to checkout.
|
||||
default: 'main'
|
||||
current_version:
|
||||
type: string
|
||||
description: Current Version of the package.json.
|
||||
default: '0.0.0'
|
||||
secrets:
|
||||
DOCKERHUB_USER: {}
|
||||
DOCKERHUB_TOKEN: {}
|
||||
TEST: {}
|
||||
TEAMCITY_WEB_ID: {}
|
||||
TEAMCITY_URL: {}
|
||||
TEAMCITY_USERNAME: {}
|
||||
TEAMCITY_PASSWORD: {}
|
||||
jobs:
|
||||
check-inputs:
|
||||
runs-on: 'nas'
|
||||
environment: ${{ inputs.environments }}
|
||||
steps:
|
||||
- name: Check secrets present
|
||||
run: |
|
||||
if [[ -z "${{ secrets.DOCKERHUB_USER }}" ]]; then
|
||||
echo "DOCKERHUB_USER secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "DOCKERHUB_USER secret is set"
|
||||
fi
|
||||
if [[ -z "${{ secrets.DOCKERHUB_TOKEN }}" ]]; then
|
||||
echo "DOCKERHUB_TOKEN secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "DOCKERHUB_TOKEN secret is set"
|
||||
fi
|
||||
echo "Current Version: ${{inputs.current_version}}"
|
||||
build:
|
||||
needs: check-inputs
|
||||
if: needs.check-inputs.result == 'success' && inputs.workflow_type != 'release'
|
||||
environment: ${{ inputs.environments }}
|
||||
runs-on: 'ubuntu-latest'
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Branch Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Login to Docker
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
username: ${{ secrets.DOCKERHUB_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Docker Build Backend
|
||||
run: docker build -f Dockerfile -t john4064/matchmaking:latest_web ./ --build-arg ENVIRONMENT=dev
|
||||
- name: Docker Push Backend
|
||||
run: docker push john4064/matchmaking:latest_web
|
||||
# deploy:
|
||||
# needs: build
|
||||
# if: needs.build.result == 'success' && inputs.workflow_type != 'release'
|
||||
# environment: ${{ inputs.environments }}
|
||||
# runs-on: 'ubuntu-latest'
|
||||
# permissions:
|
||||
# contents: read
|
||||
# packages: write
|
||||
# steps:
|
||||
# - name: Deploy to Team City
|
||||
# run: |
|
||||
# curl -u ${{ secrets.TEAMCITY_USERNAME }}:${{ secrets.TEAMCITY_PASSWORD }} \
|
||||
# -X POST \
|
||||
# -H "Content-Type: application/json" \
|
||||
# -d '{"buildType": {"id": "${{ secrets.TEAMCITY_WEB_ID }}"}}' \
|
||||
# "${{ secrets.TEAMCITY_URL }}/httpAuth/app/rest/buildQueue" > /dev/null
|
||||
172
.github/workflows/web-deploy-prod.yml
vendored
172
.github/workflows/web-deploy-prod.yml
vendored
|
|
@ -1,87 +1,87 @@
|
|||
name: Web Deployment Production
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
environments:
|
||||
type: string
|
||||
description: An optional list of environments to deploy to.
|
||||
default: 'prod'
|
||||
workflow_type:
|
||||
type: string
|
||||
description: An optional string for workflow types.
|
||||
default: 'prod'
|
||||
branch:
|
||||
type: string
|
||||
description: An optional string to define which branch to checkout.
|
||||
default: 'main'
|
||||
current_version:
|
||||
type: string
|
||||
description: Current Version of the package.json.
|
||||
default: '0.0.0'
|
||||
secrets:
|
||||
DOCKERHUB_USER: {}
|
||||
DOCKERHUB_TOKEN: {}
|
||||
TEST: {}
|
||||
TEAMCITY_WEB_ID: {}
|
||||
TEAMCITY_URL: {}
|
||||
TEAMCITY_USERNAME: {}
|
||||
TEAMCITY_PASSWORD: {}
|
||||
jobs:
|
||||
check-inputs:
|
||||
runs-on: 'ubuntu-latest'
|
||||
environment: ${{ inputs.environments }}
|
||||
steps:
|
||||
- name: Check secrets present
|
||||
run: |
|
||||
if [[ -z "${{ secrets.DOCKERHUB_USER }}" ]]; then
|
||||
echo "DOCKERHUB_USER secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "DOCKERHUB_USER secret is set"
|
||||
fi
|
||||
if [[ -z "${{ secrets.DOCKERHUB_TOKEN }}" ]]; then
|
||||
echo "DOCKERHUB_TOKEN secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "DOCKERHUB_TOKEN secret is set"
|
||||
fi
|
||||
echo "Current Version: ${{inputs.current_version}}"
|
||||
build:
|
||||
needs: check-inputs
|
||||
if: needs.check-inputs.result == 'success' && inputs.workflow_type == 'release'
|
||||
environment: ${{ inputs.environments }}
|
||||
runs-on: 'ubuntu-latest'
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Branch Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Login to Docker
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
username: ${{ secrets.DOCKERHUB_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Docker Build Backend
|
||||
run: docker build -f Dockerfile -t john4064/matchmaking:prod_web ./ --build-arg ENVIRONMENT=prod
|
||||
- name: Docker Push Backend
|
||||
run: docker push john4064/matchmaking:prod_web
|
||||
# deploy:
|
||||
# needs: build
|
||||
# if: needs.build.result == 'success' && inputs.workflow_type == 'release'
|
||||
# environment: ${{ inputs.environments }}
|
||||
# runs-on: 'ubuntu-latest'
|
||||
# permissions:
|
||||
# contents: read
|
||||
# packages: write
|
||||
# steps:
|
||||
# - name: Deploy to Team City
|
||||
# run: |
|
||||
# curl -u ${{ secrets.TEAMCITY_USERNAME }}:${{ secrets.TEAMCITY_PASSWORD }} \
|
||||
# -X POST \
|
||||
# -H "Content-Type: application/json" \
|
||||
# -d '{"buildType": {"id": "${{ secrets.TEAMCITY_WEB_ID }}"}}' \
|
||||
name: Web Deployment Production
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
environments:
|
||||
type: string
|
||||
description: An optional list of environments to deploy to.
|
||||
default: 'prod'
|
||||
workflow_type:
|
||||
type: string
|
||||
description: An optional string for workflow types.
|
||||
default: 'prod'
|
||||
branch:
|
||||
type: string
|
||||
description: An optional string to define which branch to checkout.
|
||||
default: 'main'
|
||||
current_version:
|
||||
type: string
|
||||
description: Current Version of the package.json.
|
||||
default: '0.0.0'
|
||||
secrets:
|
||||
DOCKERHUB_USER: {}
|
||||
DOCKERHUB_TOKEN: {}
|
||||
TEST: {}
|
||||
TEAMCITY_WEB_ID: {}
|
||||
TEAMCITY_URL: {}
|
||||
TEAMCITY_USERNAME: {}
|
||||
TEAMCITY_PASSWORD: {}
|
||||
jobs:
|
||||
check-inputs:
|
||||
runs-on: 'ubuntu-latest'
|
||||
environment: ${{ inputs.environments }}
|
||||
steps:
|
||||
- name: Check secrets present
|
||||
run: |
|
||||
if [[ -z "${{ secrets.DOCKERHUB_USER }}" ]]; then
|
||||
echo "DOCKERHUB_USER secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "DOCKERHUB_USER secret is set"
|
||||
fi
|
||||
if [[ -z "${{ secrets.DOCKERHUB_TOKEN }}" ]]; then
|
||||
echo "DOCKERHUB_TOKEN secret is empty or missing"
|
||||
exit 1
|
||||
else
|
||||
echo "DOCKERHUB_TOKEN secret is set"
|
||||
fi
|
||||
echo "Current Version: ${{inputs.current_version}}"
|
||||
build:
|
||||
needs: check-inputs
|
||||
if: needs.check-inputs.result == 'success' && inputs.workflow_type == 'release'
|
||||
environment: ${{ inputs.environments }}
|
||||
runs-on: 'nas'
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
steps:
|
||||
- name: Branch Checkout
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
ref: ${{ inputs.branch }}
|
||||
- name: Login to Docker
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: docker.io
|
||||
username: ${{ secrets.DOCKERHUB_USER }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Docker Build Backend
|
||||
run: docker build -f Dockerfile -t john4064/matchmaking:prod_web ./ --build-arg ENVIRONMENT=prod
|
||||
- name: Docker Push Backend
|
||||
run: docker push john4064/matchmaking:prod_web
|
||||
# deploy:
|
||||
# needs: build
|
||||
# if: needs.build.result == 'success' && inputs.workflow_type == 'release'
|
||||
# environment: ${{ inputs.environments }}
|
||||
# runs-on: 'ubuntu-latest'
|
||||
# permissions:
|
||||
# contents: read
|
||||
# packages: write
|
||||
# steps:
|
||||
# - name: Deploy to Team City
|
||||
# run: |
|
||||
# curl -u ${{ secrets.TEAMCITY_USERNAME }}:${{ secrets.TEAMCITY_PASSWORD }} \
|
||||
# -X POST \
|
||||
# -H "Content-Type: application/json" \
|
||||
# -d '{"buildType": {"id": "${{ secrets.TEAMCITY_WEB_ID }}"}}' \
|
||||
# "${{ secrets.TEAMCITY_URL }}/httpAuth/app/rest/buildQueue" > /dev/null
|
||||
Loading…
Reference in a new issue