From f28e08db02156f46a205c230d1c9929e960abbeb Mon Sep 17 00:00:00 2001 From: Briana Swift Date: Fri, 1 Nov 2019 09:32:36 +0100 Subject: [PATCH 1/5] add base staging workflow file --- .github/CHANGETHIS/deploy-staging.yml | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .github/CHANGETHIS/deploy-staging.yml diff --git a/.github/CHANGETHIS/deploy-staging.yml b/.github/CHANGETHIS/deploy-staging.yml new file mode 100644 index 0000000..9c8691b --- /dev/null +++ b/.github/CHANGETHIS/deploy-staging.yml @@ -0,0 +1,3 @@ +name: Staging deployment + +on: \ No newline at end of file From a310b2218dd774e44b3d14bcb9d12eda13c62143 Mon Sep 17 00:00:00 2001 From: Lia Keston Date: Mon, 21 Sep 2020 15:35:03 -0400 Subject: [PATCH 2/5] bump node-forge --- package-lock.json | 15 +++++++++++---- package.json | 3 ++- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index f6db4a9..a53cb2f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6077,10 +6077,9 @@ } }, "node-forge": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.9.0.tgz", - "integrity": "sha512-7ASaDa3pD+lJ3WvXFsxekJQelBKRpne+GOVbLbtHYdd7pFspyeuJHnWfLplGf3SwKGbfs/aYl5V/JCIaHVUKKQ==", - "dev": true + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.10.0.tgz", + "integrity": "sha512-PPmu8eEeG9saEUvI97fm4OYxXVB6bFvyNTyiUOBichBpFG8A1Ljw3bY62+5oOjDEMHRnd0Y7HQ+x7uzxOzC6JA==" }, "node-int64": { "version": "0.4.0", @@ -7535,6 +7534,14 @@ "dev": true, "requires": { "node-forge": "0.9.0" + }, + "dependencies": { + "node-forge": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-0.9.0.tgz", + "integrity": "sha512-7ASaDa3pD+lJ3WvXFsxekJQelBKRpne+GOVbLbtHYdd7pFspyeuJHnWfLplGf3SwKGbfs/aYl5V/JCIaHVUKKQ==", + "dev": true + } } }, "semver": { diff --git a/package.json b/package.json index 1fc1417..1abe7ba 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "webpack-dev-server": "^3.11.0" }, "dependencies": { - "kind-of": "^6.0.3" + "kind-of": "^6.0.3", + "node-forge": "^0.10.0" } } From 41e056109b02d67aec555ec87da01cd7deda975f Mon Sep 17 00:00:00 2001 From: Pete Tian Date: Tue, 1 Feb 2022 12:38:49 -0800 Subject: [PATCH 3/5] Update and rename .github/CHANGETHIS/deploy-staging.yml to .github/workflows/deploy-staging.yml trigger build --- .github/CHANGETHIS/deploy-staging.yml | 3 --- .github/workflows/deploy-staging.yml | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) delete mode 100644 .github/CHANGETHIS/deploy-staging.yml create mode 100644 .github/workflows/deploy-staging.yml diff --git a/.github/CHANGETHIS/deploy-staging.yml b/.github/CHANGETHIS/deploy-staging.yml deleted file mode 100644 index 9c8691b..0000000 --- a/.github/CHANGETHIS/deploy-staging.yml +++ /dev/null @@ -1,3 +0,0 @@ -name: Staging deployment - -on: \ No newline at end of file diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml new file mode 100644 index 0000000..47916ba --- /dev/null +++ b/.github/workflows/deploy-staging.yml @@ -0,0 +1,9 @@ +name: Stage the app + +on: + pull_request: + type: [labeled] + +jobs: + build: + runs-on: utuntu-latest From c0a879fbd0d996a756ac47b449a7d2789796b13e Mon Sep 17 00:00:00 2001 From: Pete Tian Date: Tue, 1 Feb 2022 12:41:04 -0800 Subject: [PATCH 4/5] Update deploy-staging.yml correct typo in pull-request --- .github/workflows/deploy-staging.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 47916ba..f5bbb79 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -2,7 +2,7 @@ name: Stage the app on: pull_request: - type: [labeled] + types: [labeled] jobs: build: From e7e66f93df7d20cd075090b0b09cdce343bfde59 Mon Sep 17 00:00:00 2001 From: Pete Tian Date: Tue, 1 Feb 2022 13:04:27 -0800 Subject: [PATCH 5/5] Update deploy-staging.yml add conditions and env --- .github/workflows/deploy-staging.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index f5bbb79..b54449c 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -4,6 +4,19 @@ on: pull_request: types: [labeled] +env: + DOCKER_IMAGE_NAME: petetian-azure-ttt + IMAGE_REGISTRY_URL: docker.pkg.github.com + ################################################# + ### USER PROVIDED VALUES ARE REQUIRED BELOW ### + ################################################# + ################################################# + ### REPLACE USERNAME WITH GH USERNAME ### + AZURE_WEBAPP_NAME: petetian-ttt-app + ################################################# + jobs: build: runs-on: utuntu-latest + + if: contains(github.event.pull_request.labels.*.name, 'stage')