From 1d309b65a58b3963b8734d240ce6a2a9a089cdb3 Mon Sep 17 00:00:00 2001 From: sian Date: Thu, 25 Jul 2024 22:03:18 +0900 Subject: [PATCH] add docker push step (#220) --- .github/workflows/prod_deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/prod_deploy.yml b/.github/workflows/prod_deploy.yml index 464fa20..fe5c46e 100644 --- a/.github/workflows/prod_deploy.yml +++ b/.github/workflows/prod_deploy.yml @@ -35,6 +35,13 @@ jobs: mkdir deploy/scripts cp ./scripts/* ./deploy/scripts/ + - name: Docker push + run: | + cd module-web + echo ${{ secrets.DOCKER_PASSWORD }} | docker login -u ${{ secrets.DOCKER_USERNAME }} --password-stdin + docker build -t ${{ secrets.DOCKER_REPOSITORY_PROD }} . + docker push ${{ secrets.DOCKER_REPOSITORY_PROD }} + - name: Make zip file run: zip -r ./$GITHUB_SHA.zip ./deploy/ shell: bash