-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GH-176] - Migrate from Google Container Registry (GCR) to Google Art…
…ifact Registry (GAR), remove unused scripts (#180) * feat(ci): Update deploy workflows to use gar * feat(ci): Update globals.sh and add package-mode = false to pyproject.toml * feat(ci): Update pull-request.yml * feat(ci): Bump actions/checkout to v4 in deploy.yml * feat(ci): Delete configure-docker/action.yml * chore(ci): Remove old slack dependencies * chore(ci): Remove unused gcr-login.sh * chore(ci): update gcr reference to gar in push-release-image.sh * feat(ci): update create-release.yml to use gar * chore(ci): update gcr references in docs * chore(ci): update gcr references in run-development-server.sh * [Bot] Update version to 2.4.0 --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
- Loading branch information
1 parent
df9b373
commit 86ed4f3
Showing
18 changed files
with
38 additions
and
269 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,23 +37,12 @@ jobs: | |
# Creating "Release" artifacts falls under "contents: write" | ||
contents: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: UWIT-IAM/actions/[email protected] | ||
with: | ||
gcloud-token: ${{ secrets.GCR_TOKEN }} | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
- uses: actions/checkout@v4 | ||
- name: Initialize Poetry & Install Tox & Finger Printer | ||
uses: uwit-iam/action-setup-poetry-project@main | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install Poetry with pip | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install poetry | ||
poetry --version | ||
credentials: "${{ secrets.MCI_GCLOUD_AUTH_JSON }}" | ||
enable_private_docker: true | ||
- run: | | ||
sudo apt-get -y install jq | ||
poetry run pip install tox uw-it-build-fingerprinter | ||
|
@@ -76,7 +65,7 @@ jobs: | |
if: github.ref == 'refs/heads/main' | ||
|
||
- name: Push Docker image | ||
run: docker push gcr.io/uwit-mci-iam/husky-directory:${{ env.version }} | ||
run: docker push us-docker.pkg.dev/uwit-mci-iam/containers/husky-directory:${{ env.version }} | ||
if: github.ref == 'refs/heads/main' | ||
|
||
- name: Deploy | ||
|
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 |
---|---|---|
|
@@ -10,8 +10,6 @@ on: | |
- '**.md' | ||
|
||
env: | ||
GCR_TOKEN: ${{ secrets.GCR_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
STEP_SCRIPTS: ${{ github.workspace }}/.github/steps/pull-request | ||
|
||
jobs: | ||
|
@@ -45,32 +43,18 @@ jobs: | |
env: | ||
APP_VERSION: ${{ needs.update-pr-branch-version.outputs.new-version }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v4 | ||
- name: Run uwit-iam/action-setup-poetry-project | ||
uses: uwit-iam/action-setup-poetry-project@main | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install Poetry with pip | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install poetry | ||
poetry --version | ||
credentials: "${{ secrets.MCI_GCLOUD_AUTH_JSON }}" | ||
enable_private_docker: true | ||
- run: | | ||
sudo apt-get -y install jq | ||
poetry run pip install tox uw-it-build-fingerprinter | ||
id: configure | ||
name: Set up environment | ||
- uses: UWIT-IAM/actions/[email protected] | ||
with: | ||
gcloud-token: ${{ secrets.GCR_TOKEN }} | ||
|
||
- run: poetry run tox -e build-layers | ||
poetry run tox -e build-layers | ||
- name: Run validation checks and tests | ||
run: poetry run tox -e black,flake8,unit-tests | ||
|
@@ -83,7 +67,7 @@ jobs: | |
run: ${STEP_SCRIPTS}/create-pr-tag.sh -s ${{ env.source_image }} | ||
id: create-pr-tag | ||
env: | ||
source_image: gcr.io/uwit-mci-iam/husky-directory.app:tox | ||
source_image: us-docker.pkg.dev/uwit-mci-iam/containers/husky-directory.app:tox | ||
|
||
- uses: mshick/add-pr-comment@v1 | ||
env: | ||
|
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
Oops, something went wrong.