Skip to content

Commit

Permalink
Merge pull request #4 from DataDog/ci-work
Browse files Browse the repository at this point in the history
remove unrelated workflows and add docker build workflow
  • Loading branch information
netcode authored Jul 6, 2023
2 parents 9a2866b + a7bc6b7 commit c40f009
Show file tree
Hide file tree
Showing 13 changed files with 43 additions and 703 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Release docker image

on:
push:
tags:
- "*"

env:
REGISTRY: ghcr.io
IMAGE_NAME: datadog/juice-shop

permissions:
contents: read

jobs:
docker-build-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Log into registry ${{ env.REGISTRY }}
uses: docker/[email protected]
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
push: true
build-args: |
VERSION=${{ github.ref_name }}
tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.ref_name }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
375 changes: 0 additions & 375 deletions .github/workflows/ci.yml

This file was deleted.

30 changes: 0 additions & 30 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/lint-fixer.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/lock.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/rebase.yml

This file was deleted.

92 changes: 0 additions & 92 deletions .github/workflows/release.yml

This file was deleted.

24 changes: 0 additions & 24 deletions .github/workflows/stale.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/update-challenges-www.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/update-news-www.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/zap_scan.yml

This file was deleted.

3 changes: 0 additions & 3 deletions .gitlab/auto-deploy-values.yaml

This file was deleted.

15 changes: 0 additions & 15 deletions .zap/rules.tsv

This file was deleted.

0 comments on commit c40f009

Please sign in to comment.