Skip to content

Commit

Permalink
chore: Add workflow to publish client to Docker Hub (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
meyfa authored Nov 30, 2024
1 parent 0f0293c commit 3d95e5e
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Docker Publish

# Prevent two instances of this workflow running at the same time
concurrency: docker-publish

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: meyfa
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
with:
context: ./client
file: ./client/Dockerfile
push: true
tags: meyfa/ddns-client:latest
cache-from: type=gha
cache-to: type=gha,mode=max
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
# Dynamic DNS Using Cloudflare Workers

[![CI](https://github.com/meyfa/ddns/actions/workflows/ci.yml/badge.svg)](https://github.com/meyfa/ddns/actions/workflows/ci.yml)

## Client

Available as a Docker image: https://hub.docker.com/r/meyfa/ddns-client

0 comments on commit 3d95e5e

Please sign in to comment.