diff --git a/.github/workflows/on-push-main-cypress.yaml b/.github/workflows/on-push-main-cypress.yaml index b33d87cf..263cd8d9 100644 --- a/.github/workflows/on-push-main-cypress.yaml +++ b/.github/workflows/on-push-main-cypress.yaml @@ -1,10 +1,9 @@ name: Container image UI tests on: - pull_request: - # push: - # branches: - # - main + push: + branches: + - main jobs: build-and-push: @@ -16,20 +15,20 @@ jobs: - name: Checkout uses: actions/checkout@v4 - # - name: Log in to Quay.io - # uses: docker/login-action@v3 - # with: - # registry: quay.io - # username: ${{ secrets.QUAY_USERNAME }} - # password: ${{ secrets.QUAY_TOKEN }} + - name: Log in to Quay.io + uses: docker/login-action@v3 + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_TOKEN }} - name: Build and push Docker image uses: docker/build-push-action@v5 with: context: . file: ./build/CypressContainerFile - push: false #true - # tags: quay.io/kubev2v/forklift-ui-tests:latest + push: true + tags: quay.io/kubev2v/forklift-ui-tests:latest - # - name: Logout from Quay.io - # run: docker logout quay.io + - name: Logout from Quay.io + run: docker logout quay.io