Skip to content

Commit

Permalink
ci: try docker/build-push-action
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Sep 17, 2024
1 parent da93a28 commit 8b9bc6b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,10 @@ jobs:
id: login-ecr
uses: aws-actions/amazon-ecr-login@v2

- name: Build, tag, and push image to Amazon ECR (latest)
env:
REGISTRY: ${{ steps.login-ecr.outputs.registry }}
REPO: olm
IMAGE_TAG: ${{ github.sha }}
run: |
docker build . -t $REGISTRY/$REPO:latest .
docker push $REGISTRY/$REPO:latest
- name: Build and push container image
uses: docker/build-push-action@v6
with:
context: .
push: true
file: Dockerfile
tags: ${{ steps.login-ecr.outputs.registry }}/olm:latest,${{ steps.login-ecr.outputs.registry }}/olm:{{ github.sha }}
2 changes: 1 addition & 1 deletion src/olm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
olm is organised into subcommands:
[get] saves linelist data to disk
[list] lists G.h outbreaks that olm supports
[lint] lints (checks) an outbreak linelist for errors
[list] lists G.h outbreaks that olm supports
[report] generates briefing report for an outbreak
"""

Expand Down

0 comments on commit 8b9bc6b

Please sign in to comment.