Merge pull request #2677 from spotify/orkohunter/docker-image-publishing

chore: Clean scaffolder-backend's container image on DockerHub
This commit is contained in:
Ben Lambert
2020-09-30 15:46:50 +02:00
committed by GitHub
2 changed files with 4 additions and 33 deletions
-33
View File
@@ -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
@@ -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.