Skip to content

Commit

Permalink
Create docker action
Browse files Browse the repository at this point in the history
  • Loading branch information
wernerfred committed Jun 17, 2020
1 parent 3345e40 commit 6cf977b
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@

name: Build + push to DockerHub

on:
release:
types: [published]

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

- name: Push to DockerHub with latest tag
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME_DYNDNS }}
password: ${{ secrets.DOCKERHUB_TOKEN_DYNDNS }}
repository: wernerfred/docker-dyndns
tags: latest

- name: Push to Dockerhub with version Tag
uses: docker/build-push-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME_DYNDNS }}
password: ${{ secrets.DOCKERHUB_TOKEN_DYNDNS }}
repository: wernerfred/docker-dyndns
tag_with_ref: true


0 comments on commit 6cf977b

Please sign in to comment.