-
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.
- Loading branch information
1 parent
48049c1
commit 64957dd
Showing
6 changed files
with
49 additions
and
16 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
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,40 @@ | ||
name: Deploy Service Images | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
deploy-base-image: | ||
environment: bio-check-prod | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Log in to GHCR | ||
run: echo "${{ secrets.REPO_ADMIN_GHCR_TOKEN }}" | docker login ghcr.io -u "${{ secrets.REPO_ADMIN_GH_USERNAME }}" --password-stdin | ||
|
||
- name: Get base image version | ||
run: | | ||
BASE_VERSION=$(cat ./assets/.BASE_VERSION) | ||
echo "BASE_VERSION=$BASE_VERSION" >> $GITHUB_ENV | ||
echo "Base Version: $BASE_VERSION" | ||
- name: Create gcloud config | ||
run: | | ||
echo "$BIOSIMULATIONS_GCLOUD_CONFIG" > ./assets/configs/.biosimulations.json | ||
env: | ||
BIOSIMULATIONS_GCLOUD_CONFIG: ${{ secrets.BIO_JSON_CONTENT }} | ||
|
||
- name: Build base image | ||
run: | | ||
docker build --no-cache -f ./Dockerfile-base -t ${{ env.BASE_IMG }}:${{ env.BASE_VERSION }} . | ||
- name: Deploy new base version to GHCR | ||
run: | | ||
docker push ${{ env.BASE_IMG }}:${{ env.BASE_VERSION }} | ||
- name: Deploy new latest base version | ||
run: | | ||
docker tag ${{ env.BASE_IMG }}:${{ env.BASE_VERSION }} ${{ env.BASE_IMG }}:latest | ||
docker push ${{ env.BASE_IMG }}:latest |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.