chore(github): adds publish docker images action
This commit is contained in:
parent
f4289fa2db
commit
2e3f814c97
1 changed files with 30 additions and 0 deletions
30
.github/workflows/publish-docker-images.yml
vendored
Normal file
30
.github/workflows/publish-docker-images.yml
vendored
Normal 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
|
Loading…
Reference in a new issue