Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
pfeux committed Mar 17, 2023
1 parent 34f3c34 commit bbd589a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ jobs:
- name: Build image
id: build-image
run: |
pwd
ls -alh
docker build -f Dockerfile --tag ttl.sh/webapplication2:2h .
docker push ttl.sh/webapplication2:2h
echo "image-id=ttl.sh/webapplication2:2h" >> $GITHUB_OUTPUT
Expand All @@ -33,11 +31,11 @@ jobs:
id: setup-container
run: |
docker container ls --no-trunc
container_id=`docker create ${{ needs.build-docker-image.outputs.published_image_path }}`
container_id=`docker run -d ${{ needs.build-docker-image.outputs.published_image_path }}`
if [$?=0]; then
mkdir -p files
docker cp $container_id:/app/pacts files
docker rm $container_id
docker rm $container_id -f
ls -alhR files
else
echo "Unable to run the image: ${{ needs.build-docker-image.outputs.published_image_path }}"
Expand Down

0 comments on commit bbd589a

Please sign in to comment.