-
Notifications
You must be signed in to change notification settings - Fork 80
40 lines (36 loc) · 1.06 KB
/
build-test-app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Build test application and push it to repository
on:
push:
paths:
- 'test/app/**'
- '!test/app/helm/**'
branches:
- main
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/checkout@v4
- name: Login to Quay registry
uses: docker/login-action@v3
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@v6
with:
context: test/app
push: true
tags: ${{ steps.prepare-docker-image-tag.outputs.tags }}