fix chart publishing (#2916) #99
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: CD / Softserve | |
| on: | |
| pull_request: | |
| branches: | |
| - "master" | |
| paths: | |
| - ".github/workflows/softserve-cd.yaml" | |
| - "dockerfiles/Dockerfile.softserve" | |
| - dockerfiles/bin | |
| push: | |
| tags: | |
| - 'v*.*.*' | |
| permissions: | |
| contents: read | |
| jobs: | |
| publish-softserve-docker: | |
| name: Build and push softserve | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| permissions: | |
| contents: 'read' | |
| id-token: 'write' | |
| packages: 'write' | |
| steps: | |
| - uses: actions/[email protected] | |
| with: | |
| fetch-depth: 0 | |
| - id: meta-softserve | |
| uses: docker/metadata-action@v5 | |
| with: | |
| images: | | |
| ghcr.io/pluralsh/git-server | |
| gcr.io/pluralsh/git-server | |
| docker.io/pluralsh/git-server | |
| tags: | | |
| type=schedule | |
| type=ref,event=branch | |
| type=ref,event=tag | |
| type=ref,event=pr | |
| type=sha | |
| - uses: google-github-actions/auth@v1 | |
| with: | |
| workload_identity_provider: 'projects/${{ secrets.GOOGLE_PROJECT_ID }}/locations/global/workloadIdentityPools/github/providers/github' | |
| service_account: '[email protected]' | |
| token_format: 'access_token' | |
| create_credentials_file: true | |
| - uses: google-github-actions/[email protected] | |
| - name: Login to gcr | |
| run: gcloud auth configure-docker -q | |
| - name: Login to Docker | |
| uses: docker/login-action@v3 | |
| with: | |
| username: mjgpluralsh | |
| password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | |
| - uses: docker/login-action@v3 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - uses: docker/setup-qemu-action@v3 | |
| - uses: docker/[email protected] | |
| - name: Build and push softserve | |
| uses: docker/build-push-action@v3 | |
| with: | |
| context: "./dockerfiles" | |
| file: "./dockerfiles/Dockerfile.softserve" | |
| push: true | |
| tags: ${{ steps.meta-softserve.outputs.tags }} | |
| labels: ${{ steps.meta-softserve.outputs.labels }} | |
| platforms: linux/amd64 | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max |