feat: add dockerhub registry (#17)

This commit is contained in:
Alexis Couvreur
2021-10-01 22:19:02 +02:00
committed by GitHub
parent 42b0a9a354
commit 29b1da52ea
2 changed files with 13 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ jobs:
# list of Docker images to use as base name for tags
images: |
ghcr.io/acouvreur/traefik-ondemand-service
acouvreur/traefik-ondemand-service
# generate Docker tags based on the following events/attributes
tags: |
type=schedule
@@ -46,6 +47,12 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
id: docker_build

View File

@@ -16,6 +16,9 @@
<a href="https://github.com/acouvreur/traefik-ondemand-service/releases">
<img src="https://img.shields.io/github/release/acouvreur/traefik-ondemand-service/all.svg?style=flat-square">
</a>
<a href="https://github.com/acouvreur/traefik-ondemand-service/releases">
<img src="https://img.shields.io/docker/image-size/acouvreur/traefik-ondemand-service?style=flat-square">
</a>
</p>
## Features
@@ -40,6 +43,9 @@
### Docker
- Docker Hub `acouvreur/traefik-ondemand-service`
- Ghcr `ghcr.io/acouvreur/traefik-ondemand-service`
`docker run -v /var/run/docker.sock:/var/run/docker.sock -p 10000:10000
ghcr.io/acouvreur/traefik-ondemand-service:latest --swarmode=true`