diff --git a/.github/workflows/cd-prod.yml b/.github/workflows/cd-prod.yml index 8988978..7afa5c3 100644 --- a/.github/workflows/cd-prod.yml +++ b/.github/workflows/cd-prod.yml @@ -13,7 +13,8 @@ env: jobs: deploy: - runs-on: ubuntu-latest + runs-on: + group: bulkier steps: - uses: actions/checkout@v2 with: @@ -23,10 +24,11 @@ jobs: IMAGE_NAME="${DOCKER_REPO_NAME}:${TAG_VERSION}" SHA_IMAGE_NAME="${STAGING_DOCKER_REPO_NAME}:git-${GITHUB_SHA}" - echo "${{ secrets.DOCKERHUB_KEY }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin - + docker pull "${SHA_IMAGE_NAME}" docker image tag "${SHA_IMAGE_NAME}" "${IMAGE_NAME}" + echo "${{ secrets.DOCKERHUB_KEY }}" | docker login -u "${{ secrets.DOCKERHUB_USERNAME }}" --password-stdin + docker push "${IMAGE_NAME}" - name: Get current date id: date