Skip to content

Add README

Add README #3

Workflow file for this run

name: Build and publish to DockerHub (latest)
on:
push:
branches:
- master
- main
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v4
with:
file: ./Dockerfile
push: ${{ github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master') }}
tags: |
${{ secrets.DOCKER_HUB_IMAGE }}:latest
${{ secrets.DOCKER_HUB_IMAGE }}:${{ github.sha }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}