Skip to content

Commit

Permalink
Automatically push Docker image to Docker Hub (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom authored Nov 5, 2020
1 parent d64af8d commit 4a16b15
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Push to DockerHub

on:
push:
branches: [master]

jobs:
dockerhub:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- uses: satackey/[email protected]

- name: Build and push Docker images
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
repository: ${{ github.event.repository.full_name }}
tag_with_sha: true
tags: latest
dockerfile: Dockerfile

0 comments on commit 4a16b15

Please sign in to comment.