Open BobCashStory opened 3 years ago
Don't forget to remove the reference to the third party Docker image in the README.md.
Thanks @fniessink . I suggest to create an official release on Dockerhub of this image and then add the link in the README .
It can be autobuild in Dockerhub connected to github or build from Github action like that :
Create file in .github/workflows/build_push_image.yml
name: Build and Push Docker Image
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
name: "Build and Push image on Dockerhub"
steps:
- name: Check out
uses: actions/checkout@v2
with:
fetch-depth: 0
token: '${{ secrets.GITHUB_TOKEN }}'
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Get smart tag
id: prepare
uses: Surgo/docker-smart-tag-action@v1
with:
docker_image: alvarcarto/url-to-pdf-api
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: latest
- name: Update repo description
uses: peter-evans/dockerhub-description@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
repository: alvarcarto/url-to-pdf-api
- name: Image digest
run: echo ${{ steps.prepare.outputs.tag }}
Create image in Dockerhub as alvarcarto/url-to-pdf-api
Add your Dockerhub username as secret DOCKERHUB_USERNAME
to this repo .
Create Dockerhub api key and add it as secret secrets.DOCKERHUB_TOKEN
to this repo .
Enjoy the auto build !
Docker machine builder there : https://hub.docker.com/repository/docker/jupyternaas/screenshot