From 81f692a68392bd0e3554c9c9fab757d4f969d9c8 Mon Sep 17 00:00:00 2001 From: Seth Simmons Date: Mon, 22 Mar 2021 16:04:01 -0400 Subject: [PATCH] Add Docker Hub image push to Github CI --- .github/workflows/update-image.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/update-image.yml b/.github/workflows/update-image.yml index ad0da3a..3ec3da4 100644 --- a/.github/workflows/update-image.yml +++ b/.github/workflows/update-image.yml @@ -17,7 +17,7 @@ jobs: run: echo "::set-output name=tag::$(awk -F "=" '/MONERO_BRANCH=/ {print $2}' Dockerfile)" # Build and push the repo. - - name: "Build and Push" + - name: "Build and Push Docker images to Github Packages" uses: docker/build-push-action@v1 with: username: ${{ github.actor }} @@ -25,4 +25,13 @@ jobs: registry: docker.pkg.github.com repository: ${{ github.repository }}/simple-monerod tags: latest, ${{ steps.get_tag.outputs.tag }} + add_git_labels: true + + - name: "Build and push Docker images to Docker Hub" + uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: sethsimmons/simple-monerod + tags: latest, ${{ steps.get_tag.outputs.tag }} add_git_labels: true \ No newline at end of file