test3 #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Helm Chart | ||
on: | ||
push: | ||
branches: | ||
- publish_helm | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
- name: Set up Helm | ||
uses: azure/setup-helm@v1 | ||
with: | ||
version: 'latest' | ||
- name: Package Helm Chart | ||
working-directory: open-dora-helm-chart | ||
run: | | ||
helm package . | ||
mv *.tgz $GITHUB_WORKSPACE | ||
- name: Publish to GitHub Packages | ||
run: | | ||
Check failure on line 28 in .github/workflows/publish-helm-chart.yaml GitHub Actions / Publish Helm ChartInvalid workflow file
|
||
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin | ||
HELM_CHART_TGZ=$(basename $GITHUB_WORKSPACE/open-dora-helm-chart-*.tgz) | ||
DOCKER_IMAGE_NAME=ghcr.io/${{ github.repository | lower }}/open-dora-helm-chart | ||
docker tag $DOCKER_IMAGE_NAME:$HELM_CHART_TGZ $DOCKER_IMAGE_NAME:latest | ||
docker push $DOCKER_IMAGE_NAME:latest |