Skip to content
name: Docker Build and Push
on:
release:
types: [published]
jobs:
build-push:
name: Build and Push
runs-on: ubuntu-latest
steps:
- name: Check out the repo
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: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: danieloppenlander/cloudflare-ddns:latest,danieloppenlander/cloudflare-ddns:${{ github.event.release.name }}