From f0bc016aba5bcebbac97e7223d098f6a38a1fc32 Mon Sep 17 00:00:00 2001 From: Erik Schierboom Date: Thu, 5 Nov 2020 12:19:16 +0100 Subject: [PATCH 1/2] Add Dockerhub GHA workflow --- .github/workflows/dockerhub.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/dockerhub.yml diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml new file mode 100644 index 0000000..6d78d03 --- /dev/null +++ b/.github/workflows/dockerhub.yml @@ -0,0 +1,25 @@ +name: Push to DockerHub + +on: + push: + branches: [master] + +jobs: + dockerhub: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - uses: satackey/action-docker-layer-caching@v0.0.5 + + - name: Build and push Docker images + uses: docker/build-push-action@v1.1.0 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_PASSWORD }} + repository: ${{ github.event.repository.full_name }} + tag_with_sha: true + tags: latest + dockerfile: Dockerfile From 2dc71607371695526ea5d47a155f9e9cf56ef974 Mon Sep 17 00:00:00 2001 From: Mark Simpson Date: Thu, 5 Nov 2020 21:31:35 -0500 Subject: [PATCH 2/2] Remove typo'd directory. --- .github/workflow/dockerhub.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 .github/workflow/dockerhub.yml diff --git a/.github/workflow/dockerhub.yml b/.github/workflow/dockerhub.yml deleted file mode 100644 index 07184a1..0000000 --- a/.github/workflow/dockerhub.yml +++ /dev/null @@ -1,25 +0,0 @@ -name: Push to DockerHub - -on: - push: - branches: [master] - -jobs: - dockerhub: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - uses: satackey/action-docker-layer-caching@v0.0.5 - - - name: Build and push Docker images - uses: docker/build-push-action@v1.1.0 - with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_PASSWORD }} - repository: exercism/common-lisp-analyzer - tag_with_sha: true - tags: latest - dockerfile: Dockerfile