1
- name : Parseable Docker build and push
1
+ name : Integration tests
2
2
3
3
on :
4
- push :
5
- branches : ['main']
4
+ pull_request :
6
5
paths-ignore :
7
6
- ' docs/**'
8
7
- ' helm/**'
15
14
16
15
jobs :
17
16
18
- # docker-compose-test:
19
- # name: Docker Compose integration tests
20
- # runs-on: ubuntu-latest
21
- # steps:
22
- # - name: Checkout
23
- # uses: actions/checkout@v3
24
- # - name: Start compose
25
- # run: docker-compose -f "docker-compose.yaml" up --build
26
- # - name: Stop compose
27
- # if: always()
28
- # run: docker-compose -f "docker-compose.yaml" down
17
+ docker-compose-test :
18
+ name : Docker Compose integration tests
19
+ runs-on : ubuntu-latest
20
+ steps :
21
+ - name : Checkout
22
+ uses : actions/checkout@v3
23
+ - name : Start compose
24
+ run : docker-compose -f "docker-compose.yaml" up --build
25
+ - name : Stop compose
26
+ if : always()
27
+ run : docker-compose -f "docker-compose.yaml" down
29
28
30
29
# docker-build:
31
30
# name: Docker build
@@ -36,30 +35,30 @@ jobs:
36
35
# - name: Build Docker image
37
36
# run: docker build .
38
37
39
- build-and-push-image :
40
- name : Build and push Docker image to GitHub Container Registry
41
- runs-on : ubuntu-latest
42
- permissions :
43
- contents : read
44
- packages : write
45
- steps :
46
- - name : Checkout repository
47
- uses : actions/checkout@v3
48
- - name : Log in to the Container registry
49
- uses : docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
50
- with :
51
- registry : ${{ env.REGISTRY }}
52
- username : ${{ github.actor }}
53
- password : ${{ secrets.GITHUB_TOKEN }}
54
- - name : Extract metadata (tags, labels) for Docker
55
- id : meta
56
- uses : docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
57
- with :
58
- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
59
- - name : Build and push Docker image
60
- uses : docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
61
- with :
62
- context : .
63
- push : true
64
- tags : ${{ steps.meta.outputs.tags }}
65
- labels : ${{ steps.meta.outputs.labels }}
38
+ # build-and-push-image:
39
+ # name: Build and push Docker image to GitHub Container Registry
40
+ # runs-on: ubuntu-latest
41
+ # permissions:
42
+ # contents: read
43
+ # packages: write
44
+ # steps:
45
+ # - name: Checkout repository
46
+ # uses: actions/checkout@v3
47
+ # - name: Log in to the Container registry
48
+ # uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
49
+ # with:
50
+ # registry: ${{ env.REGISTRY }}
51
+ # username: ${{ github.actor }}
52
+ # password: ${{ secrets.GITHUB_TOKEN }}
53
+ # - name: Extract metadata (tags, labels) for Docker
54
+ # id: meta
55
+ # uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
56
+ # with:
57
+ # images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
58
+ # - name: Build and push Docker image
59
+ # uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
60
+ # with:
61
+ # context: .
62
+ # push: true
63
+ # tags: ${{ steps.meta.outputs.tags }}
64
+ # labels: ${{ steps.meta.outputs.labels }}
0 commit comments