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 Console Cypress Container | |
# on: | |
# push: | |
# branches: | |
# - master | |
# tags: | |
# - 'v*.*.*' | |
# paths: | |
# - 'assets/e2e/**' | |
# - '.github/workflows/publish-cypress.yaml' | |
# jobs: | |
# publish: | |
# name: Build and push Console container | |
# runs-on: ubuntu-20.04 | |
# permissions: | |
# contents: 'read' | |
# id-token: 'write' | |
# packages: 'write' | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v3 | |
# with: | |
# fetch-depth: 0 | |
# - name: Set git tag | |
# run: echo "git_tag=$(git describe --dirty)" >> $GITHUB_ENV | |
# - name: Docker meta | |
# id: meta | |
# uses: docker/metadata-action@v4 | |
# with: | |
# # list of Docker images to use as base name for tags | |
# images: | | |
# dkr.plural.sh/console/console-cypress | |
# gcr.io/pluralsh/console-cypress | |
# ghcr.io/pluralsh/console-cypress | |
# # generate Docker tags based on the following events/attributes | |
# tags: | | |
# type=semver,pattern={{raw}},value=${{ env.git_tag }} | |
# - name: Set up QEMU | |
# uses: docker/setup-qemu-action@v2 | |
# - name: Set up Docker Buildx | |
# uses: docker/setup-buildx-action@v2 | |
# - 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 plural registry | |
# uses: docker/login-action@v2 | |
# with: | |
# registry: dkr.plural.sh | |
# username: [email protected] | |
# password: ${{ secrets.PLURAL_ACCESS_TOKEN }} | |
# - name: Login to GHCR | |
# uses: docker/login-action@v2 | |
# with: | |
# registry: ghcr.io | |
# username: ${{ github.repository_owner }} | |
# password: ${{ secrets.GITHUB_TOKEN }} | |
# - name: Build and push | |
# uses: docker/build-push-action@v3 | |
# with: | |
# context: "assets/e2e/" | |
# file: "assets/e2e/cypress.Dockerfile" | |
# push: true | |
# platforms: linux/amd64,linux/arm64 | |
# cache-from: type=gha | |
# cache-to: type=gha,mode=max | |
# tags: ${{ steps.meta.outputs.tags }} | |
# labels: ${{ steps.meta.outputs.labels }} |