cicd: fix clean target failure in dockerfile #18
Workflow file for this run
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: Build and Publish Docker Image | |
on: | |
push: | |
tags: | |
- v* | |
env: | |
STORAGE_ACCOUNT_NAME: wildboarprod | |
CHART_CONTAINER: helm-charts | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Login to the Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
push: true | |
tags: ghcr.io/wildboar-software/quipu:latest,ghcr.io/wildboar-software/quipu:${{ github.ref_name }} | |
context: ./ | |
file: ./quipu.dockerfile | |
helm: | |
name: Publish Helm Chart | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
environment: production | |
strategy: | |
fail-fast: false | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
timeout-minutes: 2 | |
- name: Create the Helm Package | |
run: helm package . | |
timeout-minutes: 2 | |
working-directory: ./k8s/charts/quipu-dsa | |
- name: Download Existing Helm Chart index | |
run: curl https://${{ env.STORAGE_ACCOUNT_NAME }}.blob.core.windows.net/${{ env.CHART_CONTAINER }}/index.yaml > existing-index.yaml | |
working-directory: ./k8s/charts/quipu-dsa | |
timeout-minutes: 2 | |
- name: Create the Helm Index | |
run: | | |
helm repo index . \ | |
--url https://${{ env.STORAGE_ACCOUNT_NAME }}.blob.core.windows.net/${{ env.CHART_CONTAINER }} \ | |
--merge existing-index.yaml | |
working-directory: ./k8s/charts/quipu-dsa | |
timeout-minutes: 2 | |
- name: Upload Helm Packages | |
uses: bacongobbler/azure-blob-storage-upload@main | |
timeout-minutes: 2 | |
with: | |
source_dir: ./k8s/charts/quipu-dsa | |
account_name: ${{ env.STORAGE_ACCOUNT_NAME }} | |
container_name: ${{ env.CHART_CONTAINER }} | |
sas_token: ${{ secrets.AZURE_BLOB_SAS }} | |
extra_args: '--pattern *.tgz' | |
overwrite: 'true' | |
- name: Upload Helm Index | |
uses: bacongobbler/azure-blob-storage-upload@main | |
timeout-minutes: 2 | |
with: | |
source_dir: ./k8s/charts/quipu-dsa | |
account_name: ${{ env.STORAGE_ACCOUNT_NAME }} | |
container_name: ${{ env.CHART_CONTAINER }} | |
sas_token: ${{ secrets.AZURE_BLOB_SAS }} | |
extra_args: '--pattern index.yaml' | |
overwrite: 'true' |