Also push to docker hub

This commit is contained in:
Neale Pickett 2020-09-14 20:29:24 +00:00
parent e37e977ec5
commit 8ad42b2dc7
2 changed files with 8 additions and 21 deletions

View File

@ -1,20 +0,0 @@
name: Mothd Docker build
on: [push]
jobs:
build-mothd:
name: Build mothd
runs-on: ubuntu-latest
steps:
- name: Retrieve code
uses: actions/checkout@v1
- name: Build mothd
run: docker build .
- 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: dirtbags/moth/moth
tag_with_ref: true

View File

@ -11,10 +11,17 @@ jobs:
- name: Retrieve code - name: Retrieve code
uses: actions/checkout@v1 uses: actions/checkout@v1
- name: Push to GitHub Packages - name: Push to GitHub Packages
uses: docker/build-push-action@v1 uses: docker/build-push-action@v2
with: with:
username: ${{ github.actor }} username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }} password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com registry: docker.pkg.github.com
repository: dirtbags/moth/moth repository: dirtbags/moth/moth
tag_with_ref: true tag_with_ref: true
- name: Push to Docker Hub
uses: docker/build-push-action@v2
with:
username: neale
password: ${{ secrets.DOCKER_TOKEN }}
registry: dirtbags/moth
tag_with_ref: true