From 1f61ae9a8e1d67e38e1bfad1c849a2baab3495a7 Mon Sep 17 00:00:00 2001 From: Liran Tal Date: Fri, 18 Dec 2020 22:12:42 +0200 Subject: [PATCH] feat(docker): deploy docker image to owasp org (#15) --- .github/workflows/deploy.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4170c15..87a0254 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -1,15 +1,8 @@ name: dockerhub-deploy on: - push: - branches: - - master - - main - tags: - - 'v*.*.*' - pull_request: - branches: - - master - - main + release: + types: [created] + jobs: path-context: runs-on: ubuntu-20.04 @@ -22,7 +15,7 @@ jobs: name: Prepare id: prep run: | - DOCKER_IMAGE=lirantal/cwe-tool + DOCKER_IMAGE=owasp/cwe-tool VERSION=noop if [[ $GITHUB_REF == refs/tags/* ]]; then VERSION=${GITHUB_REF#refs/tags/} @@ -72,7 +65,7 @@ jobs: with: context: . file: ./Dockerfile - cache-from: type=registry,ref=lirantal/cwe-tool:latest + cache-from: type=registry,ref=owasp/cwe-tool:latest cache-to: type=inline ## platforms breaking? # platforms: linux/amd64,linux/arm64,linux/386