From 430678f1dd65623784927146d5119f6a7f04dcac Mon Sep 17 00:00:00 2001 From: ferras Date: Wed, 20 May 2020 11:38:50 -0700 Subject: [PATCH] Create dockerimage.yml publish a new image on release --- .github/workflows/dockerimage.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/dockerimage.yml diff --git a/.github/workflows/dockerimage.yml b/.github/workflows/dockerimage.yml new file mode 100644 index 00000000..b8b72f19 --- /dev/null +++ b/.github/workflows/dockerimage.yml @@ -0,0 +1,25 @@ +name: Docker Image CI + +on: + release: + branches: [ release-branch ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: build assets + working-directory: ${{ github.workspace }} + run: ls -la + - uses: docker/build-push-action@v1 + with: + username: ${{ secrets.DOCKER_USERNAME_NETFLIX_OSS }} + password: ${{ secrets.DOCKER_AUTH_TOKEN_NETFLIX_OSS }} + repository: netflixoss/metaflow_metadata_service + tag_with_ref: true + tag_with_sha: true + dockerfile: ${{ github.workspace }}/Dockerfile