Skip to content

Commit e4c548a

Browse files
committed
Add prints in github action
1 parent a87e006 commit e4c548a

File tree

1 file changed

+43
-35
lines changed

1 file changed

+43
-35
lines changed

.github/workflows/deploy-image.yml

+43-35
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ name: Build and publish Docker image
33
on:
44
push:
55
branches:
6-
- master
7-
tags:
8-
- "v*.*.*"
6+
- fix_e2e_tests
7+
# branches:
8+
# - master
9+
# tags:
10+
# - "v*.*.*"
911

1012
env:
1113
REGISTRY: ghcr.io
@@ -21,45 +23,51 @@ jobs:
2123
- name: Run e2e tests
2224
run: |
2325
set -e
26+
pwd
27+
echo "After pwd"
28+
ls
29+
echo "After ls"
30+
ls ./test/fixtures
31+
echo "After ls test"
2432
for test in $(ls ./test/fixtures)
2533
do
2634
echo "Running test $test"
2735
TEST_NAME=$test docker compose up --remove-orphans test --exit-code-from test
2836
TEST_NAME=$test docker compose up output_verify --exit-code-from output_verify
2937
done
3038
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
6371

6472
# At the moment it is impossible to build linux/arm image
6573
# build-and-push-image-arm:

0 commit comments

Comments
 (0)