Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
dbones committed Dec 5, 2024
1 parent 478d4ba commit dde399f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- main
env:
REGISTRY: ghcr.io
IMAGE_NAME: $\{\{ github.repository }}
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
Expand All @@ -24,26 +24,26 @@ jobs:
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: $\{\{ env.REGISTRY }}
username: $\{\{ github.actor }}
password: $\{\{ secrets.GITHUB_TOKEN }}
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and Push Docker image to GitHub Container Registry
uses: docker/build-push-action@v6
with:
context: .
push: true
tags: |
$\{\{ env.REGISTRY }}/$\{\{ env.IMAGE_NAME }}:latest
$\{\{ env.REGISTRY }}/$\{\{ env.IMAGE_NAME }}:$\{\{ github.sha }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
- name: Install YQ
uses: dcarbone/[email protected]

- name: Update values.yaml with Latest Image Tag
run: |
yq eval --inplace ".image.repository = \"$\{\{ env.REGISTRY }}/$\{\{ env.IMAGE_NAME }}\"" charts/python-api/values.yaml
yq eval --inplace ".image.tag = \"$\{\{ github.sha }}\"" charts/python-api/values.yaml
yq eval --inplace ".image.repository = \"${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}\"" charts/python-api/values.yaml
yq eval --inplace ".image.tag = \"${{ github.sha }}\"" charts/python-api/values.yaml
- name: Configure Git
run: |
Expand All @@ -58,4 +58,4 @@ jobs:
- name: Run chart-releaser to Package and Release Helm Charts
uses: helm/[email protected]
env:
CR_TOKEN: $\{\{ secrets.GITHUB_TOKEN }}
CR_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit dde399f

Please sign in to comment.