From 19b29b4aad519482dbf45d35a1b6b1b160969870 Mon Sep 17 00:00:00 2001 From: Jerry Ma Date: Mon, 30 Aug 2021 15:08:35 +0800 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 7078ec09..f9c8d6e4 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -15,4 +15,8 @@ jobs: steps: - uses: actions/checkout@v2 - name: Build the Docker image - run: cd docker/ && docker build . --file Dockerfile --tag my-image-name:$(date +%s) + run: cd docker/ && docker build . --file Dockerfile --tag static-php + - name: Push binary into new branch + run: | + mkdir dist && docker run --rm -v $(pwd)/dist:/dist/ -it static-php cp php-dist/bin/php /dist/ + ./action-deploy.sh