Skip to content

Commit

Permalink
Force redeploy
Browse files Browse the repository at this point in the history
  • Loading branch information
floodcode committed Jul 9, 2024
1 parent 2a0cfcf commit d763f00
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/actions/deploy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ inputs:
required: true
nomad-addr:
required: true
deploy-sha:
required: true

runs:
using: "composite"
Expand All @@ -19,7 +21,7 @@ runs:
NOMAD_TOKEN: ${{ inputs.nomad-token }}
NOMAD_ADDR: ${{ inputs.nomad-addr }}
run: |
sed -i 's/DEPLOY_SHA/${{ inputs.deploy-sha }}/g' operations/deploy-${{ inputs.environment }}.hcl
curl -L https://releases.hashicorp.com/nomad/1.6.3/nomad_1.6.3_linux_amd64.zip -o nomad.zip
unzip nomad.zip
./nomad job plan -force operations/deploy-${{ inputs.environment }}.hcl
./nomad job run operations/deploy-${{ inputs.environment }}.hcl
1 change: 1 addition & 0 deletions .github/workflows/live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,4 @@ jobs:
nomad-cacert: operations/admin-ui-ca.crt
nomad-token: ${{ secrets.NOMAD_TOKEN_DEPLOY }}
nomad-addr: ${{ secrets.NOMAD_DEPLOY_ADDR }}
deploy-sha: ${{ github.sha }}
1 change: 1 addition & 0 deletions operations/deploy-live.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ job "depictor-live" {
name = "depictor-nginx"
port = "nginx-http"
tags = [
"deploy_sha=DEPLOY_SHA"
"traefik.enable=true",
"traefik.http.routers.depictor.entrypoints=https",
"traefik.http.routers.depictor.rule=Host(`netowork-health.dmz.ator.dev`)",
Expand Down

0 comments on commit d763f00

Please sign in to comment.