Skip to content

Deploy to docker hub #92

Deploy to docker hub

Deploy to docker hub #92

name: Deploy to docker hub
on:
push:
branches:
- '*'
- '!feature/**'
- '!hotfix/**'
- '!bugfix/**'
tags:
- 'v*'
schedule:
- cron: "0 3 * * 0" # Runs at 03:00 AM (UTC) every Sunday
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
# tag_with_ref: true
push: true
tags: ${{ github.repository }}:latest
context: .