Skip to content

Publish Docker image #156

Publish Docker image

Publish Docker image #156

name: Publish Docker image
on:
schedule:
- cron: '0 9 * * MON'
push:
branches: [master]
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push to Docker Hub
uses: docker/build-push-action@v5
with:
push: true
tags: kikobeats/docker-doctl:latest