diff --git a/.github/workflows/mkdocs-deploy.yaml b/.github/workflows/mkdocs-deploy.yaml index 9f65f0882..0cf1da117 100644 --- a/.github/workflows/mkdocs-deploy.yaml +++ b/.github/workflows/mkdocs-deploy.yaml @@ -6,18 +6,18 @@ name: Deploy documentation on: workflow_dispatch: inputs: - version: - description: Version to be deployed + ref: + description: The branch, tag or SHA to deploy. required: true - jobs: deploy: name: Deploy documentation - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 steps: - name: Checkout main uses: actions/checkout@v2 with: + ref: ${{ github.event.inputs.ref }} fetch-depth: 0 persist-credentials: true - uses: actions/setup-python@v2 @@ -34,4 +34,4 @@ jobs: git config user.name "aqua-bot" git config user.email "aqua-bot@users.noreply.github.com" - run: | - mike deploy --push --update-aliases ${{ github.event.inputs.version }} latest + mike deploy --push --update-aliases ${{ github.event.inputs.ref }} latest diff --git a/.github/workflows/publish-helm-chart.yaml b/.github/workflows/publish-helm-chart.yaml index 452ad99b2..59c597687 100644 --- a/.github/workflows/publish-helm-chart.yaml +++ b/.github/workflows/publish-helm-chart.yaml @@ -5,6 +5,10 @@ name: Publish Helm chart on: workflow_dispatch: + inputs: + ref: + description: The branch, tag or SHA to publish. + required: true env: HELM_REP: helm-charts GH_OWNER: aquasecurity @@ -16,15 +20,16 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.4.0 + uses: actions/checkout@v2 with: + ref: ${{ github.event.inputs.ref }} fetch-depth: 0 - name: Install Helm uses: azure/setup-helm@18bc76811624f360dbd7f18c2d4ecb32c7b87bab # v1.1 with: version: v3.5.0 - name: Set up python - uses: actions/setup-python@0066b88440aa9562be742e2c60ee750fc57d8849 # v2.3.0 + uses: actions/setup-python@v2 with: python-version: 3.7 - name: Setup Chart Linting @@ -42,7 +47,6 @@ jobs: wget https://github.com/helm/chart-releaser/releases/download/v1.3.0/chart-releaser_1.3.0_linux_amd64.tar.gz echo "baed2315a9bb799efb71d512c5198a2a3b8dcd139d7f22f878777cffcd649a37 chart-releaser_1.3.0_linux_amd64.tar.gz" | sha256sum -c - tar xzvf chart-releaser_1.3.0_linux_amd64.tar.gz cr - - name: Package helm chart run: | ./cr package ${{ env.CHART_DIR }}