Skip to content

Commit

Permalink
CD: Drop push without pulling and use bulkier worker
Browse files Browse the repository at this point in the history
  • Loading branch information
mzukowski-reef committed Sep 10, 2024
1 parent 685f30e commit 2810d22
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/cd-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ env:

jobs:
deploy:
runs-on: ubuntu-latest
runs-on:
group: bulkier
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -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
Expand Down

0 comments on commit 2810d22

Please sign in to comment.