Skip to content

Commit

Permalink
push docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
orest committed Jan 10, 2024
1 parent 3e4c62b commit 8f8d940
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,20 @@ env:
db_name: ${{vars.DB_NAME}}

name: build dietly-ui
run-name: ${{ github.actor }} is build dietly-ui
run-name: ${{ github.actor }} is building dietly-ui
on: [push]
jobs:
scrap-dietly:
build-and-push:
runs-on: ubuntu-latest
environment: dev
steps:
- name: Check out repository code
uses: actions/checkout@v4
- run: docker build -t dietly:0.3 .
- run: docker build -t europe-central2-docker.pkg.dev/gcp101713-michalpiasecki/dietly/ui:${{ github.sha }} .
- run: curl https://sdk.cloud.google.com | bash -s -- --disable-prompts
- run: echo "${{secrets.GOOGLE_APPLICATION_CREDENTIALS}}" | base64 -d > key.json
- run: gcloud auth activate-service-account --key-file key.json
- run: gcloud auth list
- run: gcloud auth configure-docker europe-central2-docker.pkg.dev
- run: docker push europe-central2-docker.pkg.dev/gcp101713-michalpiasecki/dietly/ui:${{ github.sha }}

0 comments on commit 8f8d940

Please sign in to comment.