@@ -3,9 +3,11 @@ name: Build and publish Docker image
3
3
on :
4
4
push :
5
5
branches :
6
- - master
7
- tags :
8
- - " v*.*.*"
6
+ - fix_e2e_tests
7
+ # branches:
8
+ # - master
9
+ # tags:
10
+ # - "v*.*.*"
9
11
10
12
env :
11
13
REGISTRY : ghcr.io
@@ -21,45 +23,51 @@ jobs:
21
23
- name : Run e2e tests
22
24
run : |
23
25
set -e
26
+ pwd
27
+ echo "After pwd"
28
+ ls
29
+ echo "After ls"
30
+ ls ./test/fixtures
31
+ echo "After ls test"
24
32
for test in $(ls ./test/fixtures)
25
33
do
26
34
echo "Running test $test"
27
35
TEST_NAME=$test docker compose up --remove-orphans test --exit-code-from test
28
36
TEST_NAME=$test docker compose up output_verify --exit-code-from output_verify
29
37
done
30
38
31
- - uses : actions/checkout@v3
32
- - name : Setup QEMU
33
- uses : docker/setup-qemu-action@v2
34
- - name : Set up Docker Buildx
35
- uses : docker/setup-buildx-action@v2
36
- - name : Login to Container Registry
37
- uses : docker/login-action@v2
38
- with :
39
- registry : ${{ env.REGISTRY }}
40
- username : ${{ github.actor }}
41
- password : ${{ secrets.GITHUB_TOKEN }}
42
- - name : Extract metadata (tags, labels) for Docker
43
- id : meta
44
- uses : docker/metadata-action@v4
45
- with :
46
- images : ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
47
- tags : |
48
- type=semver,pattern={{version}}
49
- type=edge,branch=master
50
- - name : Set short sha
51
- shell : bash
52
- run : |
53
- echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
54
- - name : Build and push Docker image
55
- uses : docker/build-push-action@v4
56
- with :
57
- context : .
58
- platforms : linux/amd64
59
- push : true
60
- tags : ${{ steps.meta.outputs.tags }}
61
- cache-from : type=gha
62
- cache-to : type=gha,mode=max
39
+ # - uses: actions/checkout@v3
40
+ # - name: Setup QEMU
41
+ # uses: docker/setup-qemu-action@v2
42
+ # - name: Set up Docker Buildx
43
+ # uses: docker/setup-buildx-action@v2
44
+ # - name: Login to Container Registry
45
+ # uses: docker/login-action@v2
46
+ # with:
47
+ # registry: ${{ env.REGISTRY }}
48
+ # username: ${{ github.actor }}
49
+ # password: ${{ secrets.GITHUB_TOKEN }}
50
+ # - name: Extract metadata (tags, labels) for Docker
51
+ # id: meta
52
+ # uses: docker/metadata-action@v4
53
+ # with:
54
+ # images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
55
+ # tags: |
56
+ # type=semver,pattern={{version}}
57
+ # type=edge,branch=master
58
+ # - name: Set short sha
59
+ # shell: bash
60
+ # run: |
61
+ # echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV"
62
+ # - name: Build and push Docker image
63
+ # uses: docker/build-push-action@v4
64
+ # with:
65
+ # context: .
66
+ # platforms: linux/amd64
67
+ # push: true
68
+ # tags: ${{ steps.meta.outputs.tags }}
69
+ # cache-from: type=gha
70
+ # cache-to: type=gha,mode=max
63
71
64
72
# At the moment it is impossible to build linux/arm image
65
73
# build-and-push-image-arm:
0 commit comments