From 8502e7f01f9ffa3e07c7dff239154a0af856eef4 Mon Sep 17 00:00:00 2001 From: blam Date: Thu, 9 Jul 2020 00:58:01 +0200 Subject: [PATCH] chore: add github action to run dockerfile build for Cookiecutter --- .github/workflows/scaffolder.yml | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/scaffolder.yml diff --git a/.github/workflows/scaffolder.yml b/.github/workflows/scaffolder.yml new file mode 100644 index 0000000000..41786e2f27 --- /dev/null +++ b/.github/workflows/scaffolder.yml @@ -0,0 +1,33 @@ +name: TechDocs + +on: + pull_request: + paths: + - '.github/workflows/scaffolder.yml' + - './plugins/scaffolder-backend/scripts' + push: + branches: [master] +jobs: + build: + runs-on: ${{ matrix.os }} + + strategy: + matrix: + os: [ubuntu-latest] + python-version: [3.7] + + name: Build Container + steps: + - uses: actions/checkout@v2 + # Build Docker Image + - name: Build and push Docker images + uses: docker/build-push-action@v1.1.0 + with: + path: plugins/scaffolder-backend/scripts + dockerfile: Cookiecutter.dockerfile + registry: docker.pkg.github.com + repository: ${{ github.repository }}/cookiecutter + username: ${{ github.actor }} + password: ${{ github.token }} + tag_with_ref: true + push: true