From c113ebf2cd725c710eb480a89ba998cccf4b6b7a Mon Sep 17 00:00:00 2001 From: John Date: Wed, 10 Nov 2021 23:01:31 +0100 Subject: [PATCH] remove unnecessary, build, separate release --- .github/workflows/build.yaml | 9 ++------- .github/workflows/release.yaml | 31 +++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 689634cf..4c12cd5c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -2,13 +2,11 @@ name: Build on: push: - branches: [ dockerbuildtest ] + branches: [ master ] jobs: build: - runs-on: ubuntu-latest - steps: - name: checkout @@ -22,9 +20,6 @@ jobs: uses: docker/setup-buildx-action@v1 with: buildkitd-flags: --debug - - - name: platforms - run: echo ${{ steps.buildx.outputs.platforms }} - name: login to docker hub uses: docker/login-action@v1 @@ -33,4 +28,4 @@ jobs: password: ${{ secrets.DOCKERHUB_TOKEN }} - name: build - run: cd contrib/docker && ./build.sh release + run: cd contrib/docker && ./build.sh diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 00000000..4c7632da --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,31 @@ +name: Release + +on: + release: + types: [ published ] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - + name: checkout + uses: actions/checkout@v2 + - + name: set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: set up buildx + id: buildx + uses: docker/setup-buildx-action@v1 + with: + buildkitd-flags: --debug + - + name: login to docker hub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: build + run: cd contrib/docker && ./build.sh release