Skip to content

Commit

Permalink
let's see if this works
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Scaffidi committed Nov 1, 2024
1 parent 15c8be6 commit 29674c3
Showing 1 changed file with 45 additions and 14 deletions.
59 changes: 45 additions & 14 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ jobs:
release:
runs-on: ubuntu-latest
steps:

### setup environment...

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
Expand All @@ -27,6 +30,48 @@ jobs:
uses: actions/setup-go@v5
with:
go-version: stable
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
### generate and upload helm chart artifacts

# - name: Upload Helm Chart to Release
# uses: actions/[email protected]
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# upload_url: ${{ github.event.release.upload_url }}
# asset_path: ./bin/oq
# asset_name: istio-fortsa-helm-chart-${{ github.event.release.tag_name }}
# asset_content_type: binary/octet-stream
- name: Build and Push OCI Helm Chart
run: make helm-push DOCKER_REPO_BASE=ghcr.io/${{ github.actor }} GIT_TAG=${{ github.event.release.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Rename Helm Chart Tarball File for Upload
run: mv istio-fortsa-${{ github.event.release.tag_name }}.tgz istio-fortsa-helm-chart-${{ github.event.release.tag_name }}.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Helm Chart Tarball to Release
uses: AButler/[email protected]
with:
files: "istio-fortsa-helm-chart-${{ github.event.release.tag_name }}.tgz"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Run gh-pages chart-releaser
uses: helm/[email protected]
with:
charts_dir: chart
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

### build app and other release artifacts

# this takes the same amount of time as using docker-build, but doesn't currently work...
# it seems the binary in the docker image isn't being named '/manager'
# - name: Run GoReleaser
Expand All @@ -51,17 +96,3 @@ jobs:
run: make catalog-build catalog-push IMAGE_TAG_BASE=ghcr.io/${{ github.actor }}/istio-fortsa GIT_TAG=${{ github.event.release.tag_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install Helm
uses: azure/setup-helm@v4
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Run gh-pages chart-releaser
uses: helm/[email protected]
with:
charts_dir: chart
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 29674c3

Please sign in to comment.