Skip to content

Commit

Permalink
Update docker.yml
Browse files Browse the repository at this point in the history
Switching deployment to new server w/o rancher.
  • Loading branch information
Morgul authored May 12, 2024
1 parent 2850c59 commit dfb32a1
Showing 1 changed file with 40 additions and 18 deletions.
58 changes: 40 additions & 18 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,15 +94,26 @@ jobs:
echo VERSION=$VERSION >> $GITHUB_ENV
- name: Deploy Beta Site
uses: SkewedAspect/[email protected]
env:
RANCHER_BEARER_TOKEN: ${{ secrets.RANCHER_API_KEY }}
RANCHER_CLUSTER_ID: 'c-g65ld'
RANCHER_NAMESPACE: 'rpgkeeper'
RANCHER_PROJECT_ID: 'p-7wdzf'
RANCHER_URL: 'https://rancher.skewedaspect.com/'
RANCHER_WORKLOAD: 'rpgkeeper-beta'
IMAGE_TAG: ${{ env.VERSION }}
uses: nvti/[email protected]
with:
portainer-host: ${{ vars.PORTAINER_HOST }}
username: ${{ secrets.PORTAINER_USERNAME }}
password: ${{ secrets.PORTAINER_PASSWORD }}
stack-name: 'rpgkeeper-beta'
stack-definition: 'compose/beta.yml'
template-variables: '{"client": "${{ secrets.GOOGLE_CLIENT_ID }}", "secret": "${{ secrets.GOOGLE_CLIENT_SECRET }}", "sess": "${{ secrets.BETA_SESSION_SECRET }}"}'
pull-image: true

# - name: Deploy Beta Site
# uses: SkewedAspect/[email protected]
# env:
# RANCHER_BEARER_TOKEN: ${{ secrets.RANCHER_API_KEY }}
# RANCHER_CLUSTER_ID: 'c-g65ld'
# RANCHER_NAMESPACE: 'rpgkeeper'
# RANCHER_PROJECT_ID: 'p-7wdzf'
# RANCHER_URL: 'https://rancher.skewedaspect.com/'
# RANCHER_WORKLOAD: 'rpgkeeper-beta'
# IMAGE_TAG: ${{ env.VERSION }}

# Deploys prod docker
deploy-prod:
Expand All @@ -127,12 +138,23 @@ jobs:
echo VERSION=$VERSION >> $GITHUB_ENV
- name: Deploy Production Site
uses: SkewedAspect/[email protected]
env:
RANCHER_BEARER_TOKEN: ${{ secrets.RANCHER_API_KEY }}
RANCHER_CLUSTER_ID: 'c-g65ld'
RANCHER_NAMESPACE: 'rpgkeeper'
RANCHER_PROJECT_ID: 'p-7wdzf'
RANCHER_URL: 'https://rancher.skewedaspect.com/'
RANCHER_WORKLOAD: 'rpgkeeper'
IMAGE_TAG: ${{ env.VERSION }}
uses: nvti/[email protected]
with:
portainer-host: ${{ vars.PORTAINER_HOST }}
username: ${{ secrets.PORTAINER_USERNAME }}
password: ${{ secrets.PORTAINER_PASSWORD }}
stack-name: 'rpgkeeper'
stack-definition: 'compose/prod.yml'
template-variables: '{"version": "${{ env.VERSION }}", "client": "${{ secrets.GOOGLE_CLIENT_ID }}", "secret": "${{ secrets.GOOGLE_CLIENT_SECRET }}", "sess": "${{ secrets.PROD_SESSION_SECRET }}"}'
pull-image: true

# - name: Deploy Production Site
# uses: SkewedAspect/[email protected]
# env:
# RANCHER_BEARER_TOKEN: ${{ secrets.RANCHER_API_KEY }}
# RANCHER_CLUSTER_ID: 'c-g65ld'
# RANCHER_NAMESPACE: 'rpgkeeper'
# RANCHER_PROJECT_ID: 'p-7wdzf'
# RANCHER_URL: 'https://rancher.skewedaspect.com/'
# RANCHER_WORKLOAD: 'rpgkeeper'
# IMAGE_TAG: ${{ env.VERSION }}

0 comments on commit dfb32a1

Please sign in to comment.