Skip to content

🔧 no cronjobs and need latest #41

🔧 no cronjobs and need latest

🔧 no cronjobs and need latest #41

Workflow file for this run

name: Publish Docker Hub
on:
# schedule:
# - cron: '37 7 * * *'
push:
tags: [ 'v*.*','latest' ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: "${{ github.repository }}:${{ github.ref_name }}"