Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 8 additions & 9 deletions .github/workflows/build_and_push_to_gar.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
---
name: build and push to GAR
on:
push:
Expand All @@ -12,8 +11,8 @@ on:
- v[0-9]+.[0-9]+.[0-9]+

env:
POETRY_VERSION: 1.8.3
PYTHON_VERSION: 3.11.10
POETRY_VERSION: 1.8.5
PYTHON_VERSION: 3.11.15

jobs:
build-and-push:
Expand All @@ -27,15 +26,15 @@ jobs:
id-token: write

steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v6
with:
fetch-depth: 0

- name: install poetry
run: python -m pip install poetry==${{ env.POETRY_VERSION }}

- name: setup python
uses: actions/setup-python@v5
uses: actions/setup-python@v6
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: poetry
Expand All @@ -53,24 +52,24 @@ jobs:
run: |-
echo TAG=$(git describe --tags --abbrev=7) |tee -a ${GITHUB_OUTPUT}

- uses: docker/setup-buildx-action@v3
- uses: docker/setup-buildx-action@v4

- id: gcp-auth
uses: google-github-actions/auth@v2
uses: google-github-actions/auth@v3
with:
token_format: access_token
service_account: artifact-writer@${{ secrets.GAR_PROJECT_ID }}.iam.gserviceaccount.com
workload_identity_provider: projects/${{ secrets.WORKLOAD_IDENTITY_POOL_PROJECT_NUMBER }}/locations/global/workloadIdentityPools/github-actions/providers/github-actions

- id: docker-login
uses: docker/login-action@v3
uses: docker/login-action@v4
with:
registry: us-docker.pkg.dev
username: oauth2accesstoken
password: ${{ steps.gcp-auth.outputs.access_token }}

- id: build-and-push
uses: docker/build-push-action@v6
uses: docker/build-push-action@v7
with:
context: refractr/
tags: |
Expand Down