Skip to content

Commit 3493742

Browse files
authored
Build the Docker image and tag it with "test_docker_image"
1 parent 17babcd commit 3493742

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/dockerimage.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
steps:
1414
- uses: actions/checkout@v1
1515

16-
- name: Build the Docker image
16+
- name: Build the Docker image and tag it with "test_docker_image"
1717
env:
1818
# @see https://docs.docker.com/develop/develop-images/build_enhancements/
1919
COMPOSE_DOCKER_CLI_BUILD: "1"
@@ -22,18 +22,18 @@ jobs:
2222
docker build . \
2323
--cache-from macbre/index-digest:latest \
2424
--build-arg COMMIT_SHA=$(git rev-parse --short HEAD) \
25-
--tag ${{ github.repository }}
25+
--tag test_docker_image
2626
docker images
2727
2828
echo "## Image labels:"
29-
docker inspect --format='{{json .Config.Labels}}' ${{ github.repository }} | jq
29+
docker inspect --format='{{json .Config.Labels}}' test_docker_image | jq
3030
3131
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
3333
3434
- name: Check the version
3535
run: |
36-
docker run ${{ github.repository }} --version
36+
docker run test_docker_image --version
3737
3838
docker_test:
3939
runs-on: ubuntu-latest
@@ -55,5 +55,5 @@ jobs:
5555
- name: Run the container and connect to the test database
5656
run: |
5757
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
5959
grep "Jolly, good! No issues to report" /tmp/results

0 commit comments

Comments
 (0)