File tree 5 files changed +13
-33
lines changed
tests/integration/codebuild
5 files changed +13
-33
lines changed Original file line number Diff line number Diff line change @@ -11,38 +11,38 @@ jobs:
11
11
runs-on : ubuntu-latest
12
12
13
13
steps :
14
- - uses : actions/checkout@v2
14
+ - uses : actions/checkout@v4
15
15
- name : Run 'pr' target
16
16
run : make pr
17
17
18
18
alpine :
19
19
runs-on : ubuntu-latest
20
20
21
21
steps :
22
- - uses : actions/checkout@v2
22
+ - uses : actions/checkout@v4
23
23
- name : Run alpine integration tests
24
24
run : DISTRO=alpine make test-integ
25
25
26
26
amazonlinux :
27
27
runs-on : ubuntu-latest
28
28
29
29
steps :
30
- - uses : actions/checkout@v2
30
+ - uses : actions/checkout@v4
31
31
- name : Run amazonlinux integration tests
32
32
run : DISTRO=amazonlinux make test-integ
33
33
34
34
debian :
35
35
runs-on : ubuntu-latest
36
36
37
37
steps :
38
- - uses : actions/checkout@v2
38
+ - uses : actions/checkout@v4
39
39
- name : Run debian integration tests
40
40
run : DISTRO=debian make test-integ
41
41
42
42
ubuntu :
43
43
runs-on : ubuntu-latest
44
44
45
45
steps :
46
- - uses : actions/checkout@v2
46
+ - uses : actions/checkout@v4
47
47
- name : Run ubuntu integration tests
48
48
run : DISTRO=ubuntu make test-integ
Original file line number Diff line number Diff line change @@ -52,13 +52,8 @@ phases:
52
52
echo "COPY ${SCRATCH_DIR}/${RIE} /usr/bin/${RIE}" >> \
53
53
"${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp"
54
54
- >
55
- if [[ -z "${DOCKERHUB_USERNAME}" && -z "${DOCKERHUB_PASSWORD}" ]];
56
- then
57
- echo "DockerHub credentials not set as CodeBuild environment variables. Continuing without docker login."
58
- else
59
- echo "Performing DockerHub login . . ."
60
- docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
61
- fi
55
+ echo '{"registry-mirrors": ["https://mirror.gcr.io"]}' > /etc/docker/daemon.json
56
+ service docker restart
62
57
- echo "Building image ${IMAGE_TAG}"
63
58
- >
64
59
docker build . \
Original file line number Diff line number Diff line change @@ -46,13 +46,8 @@ phases:
46
46
echo "COPY ${SCRATCH_DIR}/${RIE} /usr/bin/${RIE}" >> \
47
47
"${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp"
48
48
- >
49
- if [[ -z "${DOCKERHUB_USERNAME}" && -z "${DOCKERHUB_PASSWORD}" ]];
50
- then
51
- echo "DockerHub credentials not set as CodeBuild environment variables. Continuing without docker login."
52
- else
53
- echo "Performing DockerHub login . . ."
54
- docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
55
- fi
49
+ echo '{"registry-mirrors": ["https://mirror.gcr.io"]}' > /etc/docker/daemon.json
50
+ service docker restart
56
51
- echo "Building image ${IMAGE_TAG}"
57
52
- >
58
53
docker build . \
Original file line number Diff line number Diff line change @@ -50,13 +50,8 @@ phases:
50
50
echo "RUN apt-get update && apt-get install -y curl" >> \
51
51
"${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp"
52
52
- >
53
- if [[ -z "${DOCKERHUB_USERNAME}" && -z "${DOCKERHUB_PASSWORD}" ]];
54
- then
55
- echo "DockerHub credentials not set as CodeBuild environment variables. Continuing without docker login."
56
- else
57
- echo "Performing DockerHub login . . ."
58
- docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
59
- fi
53
+ echo '{"registry-mirrors": ["https://mirror.gcr.io"]}' > /etc/docker/daemon.json
54
+ service docker restart
60
55
- echo "Building image ${IMAGE_TAG}"
61
56
- >
62
57
docker build . \
Original file line number Diff line number Diff line change @@ -48,13 +48,8 @@ phases:
48
48
echo "COPY ${SCRATCH_DIR}/${RIE} /usr/bin/${RIE}" >> \
49
49
"${SCRATCH_DIR}/Dockerfile.echo.${OS_DISTRIBUTION}.tmp"
50
50
- >
51
- if [[ -z "${DOCKERHUB_USERNAME}" && -z "${DOCKERHUB_PASSWORD}" ]];
52
- then
53
- echo "DockerHub credentials not set as CodeBuild environment variables. Continuing without docker login."
54
- else
55
- echo "Performing DockerHub login . . ."
56
- docker login -u $DOCKERHUB_USERNAME -p $DOCKERHUB_PASSWORD
57
- fi
51
+ echo '{"registry-mirrors": ["https://mirror.gcr.io"]}' > /etc/docker/daemon.json
52
+ service docker restart
58
53
- echo "Building image ${IMAGE_TAG}"
59
54
- >
60
55
docker build . \
You can’t perform that action at this time.
0 commit comments