Skip to content

Commit

Permalink
build: tag image with commit sha and update deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
cgawron committed Mar 14, 2024
1 parent f93bfc6 commit 1d9bc01
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/release.yml → .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ jobs:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/fhswf/openai-proxy:latest


tags: ghcr.io/fhswf/openai-proxy:latest, ghcr.io/fhswf/openai-proxy:${{ github.sha }}

- name: Update yaml
uses: fjogeleit/yaml-update-action@main
with:
valueFile: 'k8s/deployment.yaml'
propertyPath: 'spec.template.spec.containers[0].image'
value: ghcr.io/fhswf/openai-proxy:${{ github.sha }}
branch: main
message: 'Update image to ${{ github.sha }}'
File renamed without changes.
File renamed without changes.

0 comments on commit 1d9bc01

Please sign in to comment.