Skip to content

Commit

Permalink
ci(spaceward): fix build and push after Dockerfile changes (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pitasi authored Feb 15, 2024
1 parent 34d63c2 commit 295e88f
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions .github/workflows/build_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,25 +41,8 @@ jobs:
echo "ECR_REPO=${{ vars.ECR_REGISTRY }}.dkr.ecr.eu-west-1.amazonaws.com/wardenprotocol/production" >> $GITHUB_ENV
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build and Push (SpaceWard)
if: ${{ env.REF == 'spaceward' }}
uses: docker/build-push-action@v4
with:
context: ./spaceward
build-args: |
SERVICE=${{ env.REF }}
GIT_SHA=${{ env.COMMIT_SHA }}
BUILD_DATE=${{ env.BUILD_DATE }}
push: true
tags: |
${{ env.ECR_REPO }}:${{ env.SHORT_SHA }}
${{ env.ECR_REPO }}:${{ env.TAG }}
${{ env.ECR_REPO }}:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Build and Push
id: image
if: ${{ env.REF != 'spaceward' }}
uses: docker/build-push-action@v4
with:
context: .
Expand Down Expand Up @@ -94,4 +77,4 @@ jobs:
--set image.repository=${{ env.ECR_REPO }} \
--set image.name=${{ env.REF }} \
--set image.tag=${{ env.SHORT_SHA }} \
./stable/${{ env.REF }}/
./stable/${{ env.REF }}/

0 comments on commit 295e88f

Please sign in to comment.