From e8363c268be024f20f19fd4bf294ae09876d4b13 Mon Sep 17 00:00:00 2001 From: hunterlong Date: Fri, 10 Jul 2020 13:22:02 -0700 Subject: [PATCH] deploy latest action --- .github/workflows/deploy.yml | 32 -------------------------------- .github/workflows/master.yml | 25 +++++++++++++++++++++++++ 2 files changed, 25 insertions(+), 32 deletions(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index bee501bf..00000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Deploy Master Release -on: - push: - tags: - - 'v*.*.*' - -jobs: - docker-release: - needs: upload-release - runs-on: ubuntu-latest - steps: - - name: Checkout Statping Repo - uses: actions/checkout@v2 - - - name: Setting ENV's - run: echo ::set-env name=VERSION::$(cat version.txt) - shell: bash - - - name: Set up Docker Buildx - uses: crazy-max/ghaction-docker-buildx@v3 - - - name: Docker Login - env: - DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} - DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} - run: echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin - - - name: Docker Buildx (push) - run: | - docker buildx create --use - docker buildx build --tag=statping/statping,statping/statping:v${VERSION} --build-arg=VERSION=${VERSION} --platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7 --output type=image,name=docker.io/statping/statping,push=true . - diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index d03e367a..9f8f073e 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -406,6 +406,31 @@ jobs: builds/statping-windows-amd64.zip builds/statping-windows-arm.zip + docker-release: + needs: upload-release + runs-on: ubuntu-latest + steps: + - name: Checkout Statping Repo + uses: actions/checkout@v2 + + - name: Setting ENV's + run: echo ::set-env name=VERSION::$(cat version.txt) + shell: bash + + - name: Set up Docker Buildx + uses: crazy-max/ghaction-docker-buildx@v3 + + - name: Docker Login + env: + DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }} + DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }} + run: echo "${DOCKER_PASSWORD}" | docker login --username "${DOCKER_USERNAME}" --password-stdin + + - name: Docker Buildx (push) + run: | + docker buildx create --use + docker buildx build --tag=statping/statping:latest,statping/statping:v${VERSION} --build-arg=VERSION=${VERSION} --platform=linux/amd64,linux/386,linux/arm64,linux/arm/v7 --output type=image,name=docker.io/statping/statping,push=true . + sentry-release: needs: upload-release runs-on: ubuntu-latest