From d31f2a575c0f92013bb689a4b6ecac49cfad144c Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Thu, 4 Feb 2021 15:15:20 -0500 Subject: [PATCH 1/2] ci: Use https:// rather than ssh for clone --- .gitmodules | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitmodules b/.gitmodules index 4225bd1d50..5fe1420c7f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,3 @@ [submodule "src/indexer/backward-cpp"] - path = src/indexer/backward-cpp - url = git@github.com:bombela/backward-cpp.git + path = src/indexer/backward-cpp + url = https://github.com/bombela/backward-cpp.git From a0ce71bfef05a5ffc466d656cc9c28540645f5df Mon Sep 17 00:00:00 2001 From: TJ DeVries Date: Thu, 4 Feb 2021 15:23:43 -0500 Subject: [PATCH 2/2] ci: pull_request workflow --- .github/workflows/pull_request.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/pull_request.yml diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml new file mode 100644 index 0000000000..d43672257e --- /dev/null +++ b/.github/workflows/pull_request.yml @@ -0,0 +1,25 @@ +name: pull_request + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Unshallow + run: git fetch --prune --unshallow && git submodule update --init --recursive + - uses: docker/setup-buildx-action@v1 + - name: Docker login + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + - name: Just build (no push) + id: docker_build + uses: docker/build-push-action@v2 + with: + push: false + - name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }}