Skip to content

Commit

Permalink
Create build-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
bishoyh authored Jul 10, 2024
1 parent b3f46f2 commit ec77594
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build and Publish Distroless minimap2

on:
push:
branches:
- main
tags:
- 'v*'

jobs:
build-publish:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: bishoyh/minimap2:latest

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit ec77594

Please sign in to comment.