From 8ad42b2dc707a70f0ebf2da8f2e4263650012506 Mon Sep 17 00:00:00 2001 From: Neale Pickett Date: Mon, 14 Sep 2020 20:29:24 +0000 Subject: [PATCH] Also push to docker hub --- .github/workflows/docker_publish.yml | 20 -------------------- .github/workflows/publish.yml | 9 ++++++++- 2 files changed, 8 insertions(+), 21 deletions(-) delete mode 100644 .github/workflows/docker_publish.yml diff --git a/.github/workflows/docker_publish.yml b/.github/workflows/docker_publish.yml deleted file mode 100644 index 7e08a56..0000000 --- a/.github/workflows/docker_publish.yml +++ /dev/null @@ -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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ab71229..1293514 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -11,10 +11,17 @@ jobs: - name: Retrieve code uses: actions/checkout@v1 - name: Push to GitHub Packages - uses: docker/build-push-action@v1 + uses: docker/build-push-action@v2 with: username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} registry: docker.pkg.github.com repository: dirtbags/moth/moth 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