From 5cfc87d462d2cc33c6b71924d48d4b0554cca7af Mon Sep 17 00:00:00 2001 From: Paul Copplestone Date: Mon, 21 Sep 2020 08:54:57 +0800 Subject: [PATCH 1/3] chore: adds a "dev" docker deployment on any push to master --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8aef5fd8d3..eb724c8abb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,4 +75,21 @@ jobs: files: 'gotrue-${{ steps.releases.outputs.release }}.tar.gz' release-tag: ${{ steps.releases.outputs.release }} repo-token: ${{ secrets.GITHUB_TOKEN }} + name: Release + + docker: + name: Deploy to docker + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Upload image to Docker Hub + uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: ${{ secrets.DOCKER_REPO }} + tags: dev + \ No newline at end of file From 5cce4be4affd1541d1729b86ecaf37ad954b2497 Mon Sep 17 00:00:00 2001 From: Paul Copplestone Date: Mon, 21 Sep 2020 16:42:28 +0800 Subject: [PATCH 2/3] chore: Adds docker as a step, deploys to release tags --- .github/workflows/release.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index eb724c8abb..0f69588586 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -77,19 +77,12 @@ jobs: repo-token: ${{ secrets.GITHUB_TOKEN }} name: Release - docker: - name: Deploy to docker - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Upload image to Docker Hub uses: docker/build-push-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} repository: ${{ secrets.DOCKER_REPO }} - tags: dev + tags: latest,${{ steps.releases.outputs.release }} \ No newline at end of file From d3a460290047ca032bb2881a12d3ee8728f1ea4d Mon Sep 17 00:00:00 2001 From: Paul Copplestone Date: Mon, 21 Sep 2020 16:45:19 +0800 Subject: [PATCH 3/3] removes unnecessary key --- .github/workflows/release.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f69588586..aa687c4433 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,7 +75,6 @@ jobs: files: 'gotrue-${{ steps.releases.outputs.release }}.tar.gz' release-tag: ${{ steps.releases.outputs.release }} repo-token: ${{ secrets.GITHUB_TOKEN }} - name: Release - name: Upload image to Docker Hub uses: docker/build-push-action@v1