-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #385 from NEONScience/auto.build.fill.gap.rglr
create auto-builds for fill_date_gaps_and_regularize
- Loading branch information
Showing
17 changed files
with
113 additions
and
51 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
.github/workflows/build_push_fill_date_gaps_and_regularize.yml
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
name: "Build-push_fill_date_gaps_and_regularize" | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
paths: | ||
- 'modules_combined/fill_date_gaps_and_regularize/*' | ||
- 'modules/date_gap_filler/*' | ||
- 'modules/common/*' | ||
- 'flow/flow.rglr/*' | ||
workflow_dispatch: {} # Allows trigger of workflow from web interface | ||
|
||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN }} | ||
# Use github and google registries | ||
GHCR_REGISTRY: ghcr.io | ||
GCP_ARTIFACT_HOST: ${{ vars.SHARED_WIF_LOCATON }}-docker.pkg.dev | ||
GCP_REGISTRY: ${{ vars.SHARED_WIF_LOCATON }}-docker.pkg.dev/${{ vars.SHARED_WIF_PROJECT }}/${{ vars.SHARED_WIF_REPO }} | ||
GCP_PROVIDER: ${{ vars.SHARED_WIF_PROVIDER }} | ||
GCP_SERVICE_ACCOUNT: ${{ vars.SHARED_WIF_SERVICE_ACCOUNT }} | ||
GHCR_NS: battelleecology | ||
# Use docker.io for Docker Hub if empty | ||
REGISTRY: ghcr.io | ||
# Get just the repo name from the event, i.e., NEON-IS-data-processing | ||
REPO_NAME: ${{ github.event.repository.name }} | ||
# IS module name | ||
MODULE_PATH: ./modules_combined/fill_date_gaps_and_regularize | ||
IMAGE_NAME: neon-is-gf-rglr | ||
|
||
jobs: | ||
build-push: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'write' | ||
id-token: 'write' | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
with: | ||
fetch-depth: '0' | ||
|
||
- name: Get short SHA | ||
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | ||
|
||
- name: Build and push | ||
uses: ./.github/actions/build-push | ||
with: | ||
image-tag: "${short_sha}" | ||
|
49 changes: 49 additions & 0 deletions
49
.github/workflows/build_push_update_fill_date_gaps_and_regularize.yml
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: "Build-push-update_fill_date_gaps_and_regularize" | ||
|
||
on: | ||
push: | ||
tags: | ||
- "fill_date_gaps_and_regularize/v*.*.*" | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN }} | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# Use github and google registries | ||
GHCR_REGISTRY: ghcr.io | ||
GCP_ARTIFACT_HOST: ${{ vars.SHARED_WIF_LOCATON }}-docker.pkg.dev | ||
GCP_REGISTRY: ${{ vars.SHARED_WIF_LOCATON }}-docker.pkg.dev/${{ vars.SHARED_WIF_PROJECT }}/${{ vars.SHARED_WIF_REPO }} | ||
GCP_PROVIDER: ${{ vars.SHARED_WIF_PROVIDER }} | ||
GCP_SERVICE_ACCOUNT: ${{ vars.SHARED_WIF_SERVICE_ACCOUNT }} | ||
GHCR_NS: battelleecology | ||
# Use docker.io for Docker Hub if empty | ||
REGISTRY: ghcr.io | ||
# github.repository as <account>/<repo> | ||
# IMAGE_NAME: ${{ github.repository }} | ||
# Get just the repo name from the event, i.e., NEON-IS-data-processing | ||
REPO_NAME: ${{ github.event.repository.name }} | ||
# IS module name | ||
MODULE_PATH: ./modules_combined/fill_date_gaps_and_regularize | ||
IMAGE_NAME: neon-is-gf-rglr | ||
|
||
jobs: | ||
build-push-update: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: 'write' | ||
id-token: 'write' | ||
pull-requests: 'write' | ||
|
||
steps: | ||
- name: "Checkout" | ||
uses: "actions/[email protected]" | ||
with: | ||
ref: 'master' | ||
fetch-depth: '0' | ||
|
||
- name: Get short SHA | ||
run: echo "short_sha=$(git rev-parse --short HEAD)" >> $GITHUB_ENV | ||
|
||
- name: Get semver | ||
run: echo "semver=$(git describe --tags --abbrev=0 | awk -F "/" '{print $2}')" >> $GITHUB_ENV | ||
|
||
- name: Build push and update | ||
uses: ./.github/actions/build-push-update |
9 changes: 0 additions & 9 deletions
9
modules_combined/fill_date_gaps_and_regularize/build_tag_push_update.sh
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
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
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
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