Skip to content

Commit

Permalink
Add github actions to publish
Browse files Browse the repository at this point in the history
  • Loading branch information
johnf committed Sep 26, 2020
1 parent 65c3e17 commit 4d627dd
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish Docker image
on:
release:
types: [published]
jobs:
push_to_registry:
name: Push Docker images
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: johnf
password: ${{ secrets.DOCKER_PASSWORD }}
repository: johnf/amber-electric-influxdb
tag_with_ref: true
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: johnf/amber-electric-influxdb/amber-electric-influxdb
tag_with_ref: true

0 comments on commit 4d627dd

Please sign in to comment.