From ec77594f9b5a6bc13f81bb7129bafb40a1a25b1c Mon Sep 17 00:00:00 2001 From: Bishoy Hanna <358153+bishoyh@users.noreply.github.com> Date: Wed, 10 Jul 2024 13:33:43 -0700 Subject: [PATCH] Create build-publish.yml --- .github/workflows/build-publish.yml | 34 +++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/build-publish.yml diff --git a/.github/workflows/build-publish.yml b/.github/workflows/build-publish.yml new file mode 100644 index 0000000..b087f4c --- /dev/null +++ b/.github/workflows/build-publish.yml @@ -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 }}