From a03186044a7e3de2971f711f11470e0ec8d730f4 Mon Sep 17 00:00:00 2001 From: Marcos Gaeta Date: Fri, 10 Jul 2020 10:37:17 -0700 Subject: [PATCH] Docker build as a GitHub Action --- .github/workflows/build.yml | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 104fd32..8b38dde 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,6 +1,6 @@ name: "build" on: - pull_request: + push: branches: - master @@ -13,18 +13,10 @@ jobs: with: ref: ${{ github.head_ref }} - - name: Set up Node.js - uses: actions/setup-node@v1 + - name: Docker + uses: docker/build-push-action@v1 with: - node-version: 12.x - - - name: Install dependencies - run: yarn install --frozen-lockfile - - - name: Build - run: yarn run build - - - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@v4 - with: - commit_message: Automatic build commit from GitHub Actions + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + repository: sentryintegrations/sentry-github-action-release + tags: latest