#1179 [UI] 'Show advance setting' button is not displayed when creati… #52
Workflow file for this run
This file contains hidden or 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: Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| publish: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| # write is needed for: | |
| # - OIDC for cosign's use in ecm-distro-tools/publish-image. | |
| # - Read vault secrets in rancher-eio/read-vault-secrets. | |
| id-token: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Load Secrets from Vault | |
| uses: rancher-eio/read-vault-secrets@7282bf97898cd1c16c89f837e0bb442e6d384c89 # v3 | |
| with: | |
| secrets: | | |
| secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | RANCHER_DOCKER_USERNAME ; | |
| secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | RANCHER_DOCKER_PASSWORD ; | |
| secret/data/github/repo/${{ github.repository }}/dockerhub/neuvector/credentials username | DOCKER_USERNAME ; | |
| secret/data/github/repo/${{ github.repository }}/dockerhub/neuvector/credentials password | DOCKER_PASSWORD ; | |
| secret/data/github/repo/${{ github.repository }}/rancher-prime-registry/credentials registry | PRIME_REGISTRY ; | |
| secret/data/github/repo/${{ github.repository }}/rancher-prime-registry/credentials username | PRIME_REGISTRY_USERNAME ; | |
| secret/data/github/repo/${{ github.repository }}/rancher-prime-registry/credentials password | PRIME_REGISTRY_PASSWORD | |
| - name: Parse target tag | |
| run: | | |
| TARGET=${{ github.ref_name }} | |
| echo "TAG=${TARGET#v}" >> $GITHUB_ENV | |
| - name: Publish neuvector manifest | |
| uses: rancher/ecm-distro-tools/actions/publish-image@10ab39987d39be83da6a252c1c3b540e496e0287 # v0.66.0 | |
| with: | |
| push-to-public: true | |
| push-to-prime: false | |
| image: manager | |
| tag: ${{ env.TAG }} | |
| platforms: linux/amd64,linux/arm64 | |
| public-registry: docker.io | |
| public-repo: neuvector | |
| public-username: ${{ env.DOCKER_USERNAME }} | |
| public-password: ${{ env.DOCKER_PASSWORD }} | |
| - name: Publish rancher manifest | |
| uses: rancher/ecm-distro-tools/actions/publish-image@10ab39987d39be83da6a252c1c3b540e496e0287 # v0.66.0 | |
| env: | |
| IMAGE_PREFIX: neuvector- | |
| with: | |
| image: neuvector-manager | |
| tag: ${{ env.TAG }} | |
| platforms: linux/amd64,linux/arm64 | |
| public-registry: docker.io | |
| public-repo: rancher | |
| public-username: ${{ env.RANCHER_DOCKER_USERNAME }} | |
| public-password: ${{ env.RANCHER_DOCKER_PASSWORD }} | |
| prime-registry: ${{ env.PRIME_REGISTRY }} | |
| prime-repo: rancher | |
| prime-username: ${{ env.PRIME_REGISTRY_USERNAME }} | |
| prime-password: ${{ env.PRIME_REGISTRY_PASSWORD }} |