Skip to content

Update build-publish.yml #2

Update build-publish.yml

Update build-publish.yml #2

Workflow file for this run

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: picotainers/minimap2:latest
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}