Skip to content

Commit

Permalink
Use Docker actions for login, build, push
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Furseth committed Jan 16, 2024
1 parent 871db97 commit f9cf29f
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,17 @@ jobs:
run: |-
gcloud auth configure-docker europe-docker.pkg.dev --quiet
- name: Build image
run: docker image build -t kv-ros-backend .
working-directory: ../../
- name: Login to GAR
uses: docker/login-action@v3
with:
registry: europe-docker.pkg.dev
username: _json_key
password: ${{ secrets.GCS_ACC_KEY_JSON }}

- name: Push image
run: docker push europe-docker.pkg.dev/spire-ros-5lmr/eu.gcr.io
- name: Push to Google Artifact Registry
uses: docker/build-push-action@v2
with:
push: true
tags: |
europe-docker.pkg.dev/spire-ros-5lmr/kv-ros/backend:latest

0 comments on commit f9cf29f

Please sign in to comment.