CLOUDP-220809: Fix v1.7.3 rebuilds (#1309) #149
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 test application and push it to repository | |
on: | |
push: | |
paths: | |
- 'test/app/**' | |
- '!test/app/helm/**' | |
workflow_dispatch: | |
jobs: | |
build-test-app: | |
name: Build test app and push it | |
runs-on: ubuntu-latest | |
env: | |
REGISTRY: quay.io | |
REPOSITORY: mongodb/mongodb-atlas-kubernetes-operator-test-app | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
- name: Login to docker registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ${{ env.REGISTRY }} | |
username: mongodb+mongodb_atlas_kubernetes | |
password: ${{ secrets.QUAY_PASSWORD }} | |
- name: Prepare docker image tag | |
id: prepare-docker-image-tag | |
run: | | |
TAGS="${{ env.REGISTRY }}/${{ env.REPOSITORY }}:latest" | |
echo "tags=$TAGS" >> $GITHUB_OUTPUT | |
- name: Push Image to repo | |
uses: docker/build-push-action@v3 | |
with: | |
context: test/app | |
push: true | |
tags: ${{ steps.prepare-docker-image-tag.outputs.tags }} |