Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/build-login-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ jobs:
with:
env: development
image_tag: ${{ github.sha }}
image_name: ${{ env.IMAGE_NAME }}

# staging:
# needs: build-push
Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/deploy-login-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,11 @@ on:
description: "Environment"
required: true
type: string
default: ""
image_tag:
description: "Docker image tag (latest or the commit SHA)"
required: false
type: string
default: "latest"
image_name:
description: "Docker image name"
required: false
type: string
default: "login-app"

workflow_dispatch:
inputs:
Expand All @@ -34,11 +28,6 @@ on:
required: false
type: string
default: "latest"
image_name:
description: "Docker image name"
required: false
type: string
default: "login-app"

permissions:
contents: read
Expand All @@ -47,6 +36,7 @@ permissions:

env:
PORT: "8000"
image_name: "login-app"

jobs:
format-check:
Expand Down Expand Up @@ -94,10 +84,9 @@ jobs:
run: terraform --version

- name: Set environment variables
description: Setup which command line args for tf for tfvars file to use and the GCR image
run: |
TERRAFORM_ARGS="-var-file=\"envs/${{ vars.ENV_VAR }}.tfvars\" \
-var=\"image_path=gcr.io/arxiv-development/${{inputs.image_name}}:${{inputs.image_tag}}\""
-var=\"image_path=gcr.io/arxiv-development/${{env.image_name}}:${{inputs.image_tag}}\""

echo "TERRAFORM_ARGS=$TERRAFORM_ARGS" >> $GITHUB_ENV
working-directory: terraform
Expand Down