Skip to content

Commit

Permalink
Merge branch 'main' into mg-aks-deploy-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hatboyzero committed Jan 18, 2024
2 parents 57a8cda + e1bd511 commit 480d0fe
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/release-docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
contents: read
packages: write
steps:
# - name: Fetching the Latest Release Tag number
# id: releaseVersion
# run: |
# release_json=$(curl https://api.github.com/repos/${{ github.repository }}/releases)
# release_tag=$(echo "$release_json" | jq -r '.[0].tag_name')
# echo "release_tag: Latest Tag is : $release_tag"
# echo "release_tag=$release_tag" >> $GITHUB_OUTPUT
- name: Fetching the Latest Release Tag number
id: releaseVersion
run: |
release_json=$(curl https://api.github.com/repos/${{ github.repository }}/releases)
release_tag=$(echo "$release_json" | jq -r '.[0].tag_name')
echo "release_tag: Latest Tag is : $release_tag"
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT
- name: Checkout code
uses: actions/checkout@v2
Expand All @@ -46,7 +46,7 @@ jobs:
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/solliancenet/fllm-exp02/${{ inputs.image }}
ghcr.io/${{ github.repository }}/${{ inputs.image }}
tags: |
type=raw,latest
type=raw,release
Expand All @@ -61,34 +61,34 @@ jobs:
labels: ${{ steps.meta.outputs.labels }}
push: true

# helm_chart_package_and_push:
# runs-on: ubuntu-latest
# permissions:
# contents: read
# packages: write
# steps:
# - name: Fetching the Latest Release Tag number
# id: releaseVersion
# run: |
# release_json=$(curl https://api.github.com/repos/${{ github.repository }}/releases)
# release_tag=$(echo "$release_json" | jq -r '.[0].tag_name')
# echo "release_tag: Latest Tag is : $release_tag"
# echo "release_tag=$release_tag" >> $GITHUB_OUTPUT
helm_chart_package_and_push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Fetching the Latest Release Tag number
id: releaseVersion
run: |
release_json=$(curl https://api.github.com/repos/${{ github.repository }}/releases)
release_tag=$(echo "$release_json" | jq -r '.[0].tag_name')
echo "release_tag: Latest Tag is : $release_tag"
echo "release_tag=$release_tag" >> $GITHUB_OUTPUT
# - name: Checkout code
# uses: actions/checkout@v2
- name: Checkout code
uses: actions/checkout@v2

# - name: Log in to the Container registry
# uses: docker/login-action@v3
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# - name: Helm Chart Update, Package, and Push
# run: |
# cd ./deploy/helm/${{ inputs.image }}
# sed -i "s/version\: 0\.0\.0/version\: ${{ steps.releaseVersion.outputs.release_tag }}/" Chart.yaml
# sed -i "s/tag\: latest/tag\: ${{ steps.releaseVersion.outputs.release_tag }}/" values.yaml
# helm package . --app-version ${{ steps.releaseVersion.outputs.release_tag }}
# helm push ${{ inputs.image }}-${{ steps.releaseVersion.outputs.release_tag }}.tgz oci://ghcr.io/${{ github.repository }}/helm
- name: Helm Chart Update, Package, and Push
run: |
cd ./deploy/helm/${{ inputs.image }}
sed -i "s/version\: 0\.0\.0/version\: ${{ steps.releaseVersion.outputs.release_tag }}/" Chart.yaml
sed -i "s/tag\: latest/tag\: ${{ steps.releaseVersion.outputs.release_tag }}/" values.yaml
helm package . --app-version ${{ steps.releaseVersion.outputs.release_tag }}
helm push ${{ inputs.image }}-${{ steps.releaseVersion.outputs.release_tag }}.tgz oci://ghcr.io/${{ github.repository }}/helm

0 comments on commit 480d0fe

Please sign in to comment.