From 2810d2233dba02df957e2a40a836931f7efd521a Mon Sep 17 00:00:00 2001 From: Michal Zukowski Date: Tue, 10 Sep 2024 10:30:16 +0200 Subject: [PATCH] CD: Drop push without pulling and use bulkier worker --- .github/workflows/cd-prod.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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