-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepare for taging (too complex CI but I need quick fix)
- Loading branch information
Showing
5 changed files
with
143 additions
and
11 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
.github/workflows/dockerpublish-harbor-tag-cc-analysis-ubuntu.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,43 @@ | ||
|
||
name: CD-cc-analysis-ubuntu-tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
env: | ||
GITHUB_SHA: ${{ github.sha }} | ||
GITHUB_REF: ${{ github.ref }} | ||
|
||
jobs: | ||
matrix-build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
IMAGE: [cc-analysis-ubuntu, | ||
] | ||
name: ${{ matrix.IMAGE }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Set Job Environment Variables | ||
run: | | ||
TAG="${GITHUB_REF##*/}" | ||
echo "TAG=${TAG}" >> $GITHUB_ENV | ||
- name: Login to Openscience Harbor Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: hub.opensciencegrid.org | ||
username: ${{ secrets.HARBOR_USER }} | ||
password: ${{ secrets.HARBOR_PASSWORD }} | ||
- name: Build Container Image | ||
run: | | ||
cd docker/${{ matrix.IMAGE }} | ||
docker build --build-arg TAG="development" --build-arg HUB="hub.opensciencegrid.org" --build-arg PROJECT="coffea-casa" -t hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:latest -t hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:$TAG -f Dockerfile.${{ matrix.IMAGE }} . | ||
- name: Push to Openscience Harbor Registry | ||
run: | | ||
docker push hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:latest | ||
docker push hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:$TAG |
43 changes: 43 additions & 0 deletions
43
.github/workflows/dockerpublish-harbor-tag-cc-base-ubuntu.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,43 @@ | ||
|
||
name: CD-cc-base-ubuntu-tag | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
env: | ||
GITHUB_SHA: ${{ github.sha }} | ||
GITHUB_REF: ${{ github.ref }} | ||
|
||
jobs: | ||
matrix-build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
IMAGE: [cc-base-ubuntu, | ||
] | ||
name: ${{ matrix.IMAGE }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Set Job Environment Variables | ||
run: | | ||
TAG="${GITHUB_REF##*/}" | ||
echo "TAG=${TAG}" >> $GITHUB_ENV | ||
- name: Login to Openscience Harbor Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: hub.opensciencegrid.org | ||
username: ${{ secrets.HARBOR_USER }} | ||
password: ${{ secrets.HARBOR_PASSWORD }} | ||
- name: Build Container Image | ||
run: | | ||
cd docker/${{ matrix.IMAGE }} | ||
docker build --build-arg TAG="development" --build-arg HUB="hub.opensciencegrid.org" --build-arg PROJECT="coffea-casa" -t hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:latest -t hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:$TAG -f Dockerfile.${{ matrix.IMAGE }} . | ||
- name: Push to Openscience Harbor Registry | ||
run: | | ||
docker push hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:latest | ||
docker push hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:$TAG |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
|
||
name: CD-cc-ubuntu-tag | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["CD-cc-base-ubuntu-tag"] | ||
#branches: [master] | ||
types: | ||
- completed | ||
push: | ||
tags: | ||
- '*' | ||
|
||
env: | ||
GITHUB_SHA: ${{ github.sha }} | ||
GITHUB_REF: ${{ github.ref }} | ||
|
||
jobs: | ||
matrix-build: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
IMAGE: [cc-ubuntu, | ||
] | ||
name: ${{ matrix.IMAGE }} | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Set Job Environment Variables | ||
run: | | ||
TAG="${GITHUB_REF##*/}" | ||
echo "TAG=${TAG}" >> $GITHUB_ENV | ||
- name: Login to Openscience Harbor Registry | ||
uses: docker/login-action@v1 | ||
with: | ||
registry: hub.opensciencegrid.org | ||
username: ${{ secrets.HARBOR_USER }} | ||
password: ${{ secrets.HARBOR_PASSWORD }} | ||
- name: Build Container Image | ||
run: | | ||
cd docker/${{ matrix.IMAGE }} | ||
docker build --build-arg TAG="development" --build-arg HUB="hub.opensciencegrid.org" --build-arg PROJECT="coffea-casa" -t hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:latest -t hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:$TAG -f Dockerfile.${{ matrix.IMAGE }} . | ||
- name: Push to Openscience Harbor Registry | ||
run: | | ||
docker push hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:latest | ||
docker push hub.opensciencegrid.org/coffea-casa/${{ matrix.IMAGE }}:$TAG |
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