chore(github): adds publish docker images action

This commit is contained in:
Gareth Flowers 2020-07-10 17:33:02 +01:00 committed by GitHub
parent f4289fa2db
commit 2e3f814c97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,30 @@
name: Publish Docker Images
on:
push:
branches: [ master ]
release:
types: [ published ]
jobs:
push_to_registries:
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: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: garethflowers/ftp-server
add_git_labels: true
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: garethflowers/docker-ftp-server/ftp-server
add_git_labels: true
tag_with_ref: true