-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/ci: extract tip deploy steps to reusable steps
This makes a subsequent introduction of a separate tipdeploy workflow cleaner. There is a slight re-ordering of Yaml output, but semantically it is a meaningless diff. Also name the npm install step in the hugo dir for cleaner logging on the GitHub actions side. Signed-off-by: Paul Jolly <[email protected]> Change-Id: I69f3fb5fa8ad11c9fa11b569c746576ba491276e
- Loading branch information
Showing
2 changed files
with
67 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,7 +184,8 @@ jobs: | |
if: always() | ||
run: test -z "$(git status --porcelain)" || (git status; git diff; false) | ||
- run: ./_scripts/buildDockerImage.bash | ||
- run: npm install | ||
- name: npm install in hugo dir | ||
run: npm install | ||
working-directory: hugo | ||
- name: Test | ||
run: go test ./... | ||
|
@@ -233,18 +234,22 @@ jobs: | |
ALGOLIA_INDEX_FILE: ../_public/algolia.json | ||
- name: 'tip.cuelang.org: Patch the site to be compatible with the tip of cue-lang/cue' | ||
run: _scripts/tipPatchApply.bash | ||
- name: 'tip.cuelang.org: Configure the site to use the tip of cue-lang/cue' | ||
if: github.repository == 'cue-lang/cuelang.org' && (github.ref == 'refs/heads/master' || (github.ref == 'refs/heads/ci/test')) | ||
- if: github.repository == 'cue-lang/cuelang.org' && (github.ref == 'refs/heads/master' || (github.ref == 'refs/heads/ci/test')) | ||
name: npm install in hugo dir | ||
run: npm install | ||
working-directory: hugo | ||
- if: github.repository == 'cue-lang/cuelang.org' && (github.ref == 'refs/heads/master' || (github.ref == 'refs/heads/ci/test')) | ||
name: 'tip.cuelang.org: Configure the site to use the tip of cue-lang/cue' | ||
env: | ||
GOPRIVATE: cuelang.org/go | ||
run: _scripts/tipUseAlternativeCUE.bash | ||
- name: 'tip.cuelang.org: Build the site against the tip of cue-lang/cue' | ||
if: github.repository == 'cue-lang/cuelang.org' && (github.ref == 'refs/heads/master' || (github.ref == 'refs/heads/ci/test')) | ||
- if: github.repository == 'cue-lang/cuelang.org' && (github.ref == 'refs/heads/master' || (github.ref == 'refs/heads/ci/test')) | ||
name: 'tip.cuelang.org: Build the site against the tip of cue-lang/cue' | ||
run: _scripts/regenPostInfraChange.bash | ||
env: | ||
GOPRIVATE: cuelang.org/go | ||
- name: 'tip.cuelang.org: Deploy the site' | ||
if: github.repository == 'cue-lang/cuelang.org' && (github.ref == 'refs/heads/master' || (github.ref == 'refs/heads/ci/test')) | ||
- if: github.repository == 'cue-lang/cuelang.org' && (github.ref == 'refs/heads/master' || (github.ref == 'refs/heads/ci/test')) | ||
name: 'tip.cuelang.org: Deploy the site' | ||
run: |- | ||
git config http.https://github.com/.extraheader "AUTHORIZATION: basic $(echo -n cueckoo:${{ secrets.CUECKOO_GITHUB_PAT }} | base64)" | ||
_scripts/tipDeploy.bash 'cueckoo' '[email protected]' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters