Skip to content

Commit 2f5cdd9

Browse files
committed
Changing workflow to pull from tags instead of submodules
1 parent e264351 commit 2f5cdd9

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

.github/workflows/build.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: "Release"
22
on:
3-
push:
4-
branches:
5-
- dev
6-
- stage
7-
- prod
8-
93
workflow_dispatch:
104
inputs:
5+
env:
6+
description: 'Environment'
7+
default: 'dev'
8+
type: choice
9+
options:
10+
- 'dev'
11+
- 'stage'
12+
# - 'prod'
13+
1114
build_flag:
1215
description: 'Docker Build Flags'
1316
default: ''
@@ -20,7 +23,7 @@ jobs:
2023
build:
2124
runs-on: ubuntu-latest
2225
name: Build, Push, Deploy
23-
environment: ${{ github.ref_name }}
26+
environment: ${{github.event.inputs.env}}
2427
timeout-minutes: 30
2528
steps:
2629
- uses: actions/checkout@v2
@@ -38,10 +41,10 @@ jobs:
3841

3942
# see tdei_uw.env for why
4043
- name: Override ENV_NAME_PARAM for prod deployments
41-
if: github.ref_name == 'prod'
44+
if: github.event.inputs.env == 'prod'
4245
run: echo "ENV_NAME_PARAM=" >> "$GITHUB_ENV"
4346
- name: Override ENV_NAME_PARAM for dev or stage deployments
44-
if: github.ref_name != 'prod'
47+
if: github.event.inputs.env != 'prod'
4548
env:
4649
ENV: ${{ vars.ENV }}
4750
run: echo "ENV_NAME_PARAM=-${ENV}" >> "$GITHUB_ENV"

.gitmodules

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
path = osm-rails
1111
url = [email protected]:TaskarCenterAtUW/workspaces-openstreetmap-website.git
1212
branch = workspaces
13-
[submodule "frontend"]
14-
path = frontend
15-
url = [email protected]:TaskarCenterAtUW/workspaces-frontend.git
16-
branch = temp-backup
1713
[submodule "rapid"]
1814
path = rapid
1915
url = [email protected]:TaskarCenterAtUW/workspaces-rapid.git

frontend

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)