From c5d40719433e4aebf4c0c027de2a8f639103f2ee Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Wed, 30 Sep 2020 14:57:04 +0200 Subject: [PATCH 1/2] Remove scaffolder gh workflow which publishes to gh docker registry We are currently publishing the backstage-cookiecutter to DockerHub. This is done by an integration between DockerHub and GitHub. And so, we do not need this workflow and publish to GitHub's registry. --- .github/workflows/scaffolder.yml | 33 -------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .github/workflows/scaffolder.yml diff --git a/.github/workflows/scaffolder.yml b/.github/workflows/scaffolder.yml deleted file mode 100644 index bbfd52009d..0000000000 --- a/.github/workflows/scaffolder.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Scaffolder - -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: plugins/scaffolder-backend/scripts/Cookiecutter.dockerfile - registry: docker.pkg.github.com - repository: ${{ github.repository }}/cookiecutter - username: ${{ github.actor }} - password: ${{ github.token }} - tag_with_ref: true - push: true From 567f69c67d16098f677d0feb25bca1d1f9f4e82a Mon Sep 17 00:00:00 2001 From: Himanshu Mishra Date: Wed, 30 Sep 2020 15:03:27 +0200 Subject: [PATCH 2/2] Write how scaffolder dockerimage is publised to DockerHub --- plugins/scaffolder-backend/scripts/README.md | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 plugins/scaffolder-backend/scripts/README.md diff --git a/plugins/scaffolder-backend/scripts/README.md b/plugins/scaffolder-backend/scripts/README.md new file mode 100644 index 0000000000..20d68e9c34 --- /dev/null +++ b/plugins/scaffolder-backend/scripts/README.md @@ -0,0 +1,4 @@ +The `Cookiecutter.dockerfile` is published to the +[`spotify/backstage-cookiecutter`](https://hub.docker.com/repository/docker/spotify/backstage-cookiecutter) +repository on DockerHub. This is handled by an integration between DockerHub and GitHub. +The integration handles updating the container image when a new release is made.