File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 13
13
steps :
14
14
- uses : actions/checkout@v1
15
15
16
- - name : Build the Docker image
16
+ - name : Build the Docker image and tag it with "test_docker_image"
17
17
env :
18
18
# @see https://docs.docker.com/develop/develop-images/build_enhancements/
19
19
COMPOSE_DOCKER_CLI_BUILD : " 1"
@@ -22,18 +22,18 @@ jobs:
22
22
docker build . \
23
23
--cache-from macbre/index-digest:latest \
24
24
--build-arg COMMIT_SHA=$(git rev-parse --short HEAD) \
25
- --tag ${{ github.repository }}
25
+ --tag test_docker_image
26
26
docker images
27
27
28
28
echo "## Image labels:"
29
- docker inspect --format='{{json .Config.Labels}}' ${{ github.repository }} | jq
29
+ docker inspect --format='{{json .Config.Labels}}' test_docker_image | jq
30
30
31
31
echo "## Image env vars:"
32
- docker inspect --format='{{json .Config.Env}}' ${{ github.repository }} | jq
32
+ docker inspect --format='{{json .Config.Env}}' test_docker_image | jq
33
33
34
34
- name : Check the version
35
35
run : |
36
- docker run ${{ github.repository }} --version
36
+ docker run test_docker_image --version
37
37
38
38
docker_test :
39
39
runs-on : ubuntu-latest
55
55
- name : Run the container and connect to the test database
56
56
run : |
57
57
docker ps
58
- docker run --network=host ${{ github.repository }} mysql://test:[email protected] :53306/index_digest | tee /tmp/results
58
+ docker run --network=host test_docker_image mysql://test:[email protected] :53306/index_digest | tee /tmp/results
59
59
grep "Jolly, good! No issues to report" /tmp/results
You can’t perform that action at this time.
0 commit comments