Skip to content

Commit

Permalink
Merge pull request #22 from biomage-org/build-push-ci
Browse files Browse the repository at this point in the history
updated docker build-push in CI
  • Loading branch information
kafkasl authored Oct 2, 2023
2 parents 1f557e1 + fcabed6 commit 2e5c647
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,26 +264,19 @@ jobs:

- id: build-docker-image
name: Build Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
platforms: linux/amd64
tags: ${{ format('{0}/{1}:{2}', steps.login-ecr.outputs.registry, steps.ref.outputs.repo-name, steps.ref.outputs.image-tag) }}
push: false
push: true
provenance: false
load: true
build-args: READONLY_API_TOKEN_GITHUB=${{ secrets.READONLY_API_TOKEN_GITHUB }}
cache-from: type=gha
cache-to: type=gha,mode=max

- id: push
name: Push docker image to ECR
run: |-
echo Pushing image $IMAGE_NAME to ECR.
docker push $IMAGE_NAME
env:
IMAGE_NAME: ${{ format('{0}/{1}:{2}', steps.login-ecr.outputs.registry, steps.ref.outputs.repo-name, steps.ref.outputs.image-tag) }}

deploy:
name: Deploy to Kubernetes
runs-on: ubuntu-20.04
Expand Down

0 comments on commit 2e5c647

Please sign in to comment.