-
Notifications
You must be signed in to change notification settings - Fork 8
51 lines (45 loc) · 1.57 KB
/
build_push_update_calval_loader.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: "Build-push-update_calval_loader"
on:
push:
# branches:
# - 'master'
tags:
- "calval_loader/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/calval_loader
IMAGE_NAME: neon-is-cval-loader
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 --match=calval_loader/v*.*.* | awk -F "/" '{print $2}')" >> $GITHUB_ENV
- name: Build push and update
uses: ./.github/actions/build-push-update