mirror of
https://github.com/marcel-dempers/docker-development-youtube-series.git
synced 2025-06-06 17:01:30 +00:00
datree test
This commit is contained in:
parent
ff52e92164
commit
51bf4bd383
34
.github/cicd.yaml
vendored
Normal file
34
.github/cicd.yaml
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [ datree-scoping ]
|
||||
env:
|
||||
DATREE_TOKEN: ${{ secrets.DATREE_TOKEN }}
|
||||
|
||||
jobs:
|
||||
k8sPolicyCheck:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: run datree policy check
|
||||
uses: datreeio/action-datree@main
|
||||
with:
|
||||
path: 'kubernetes/datree/example/deployment.yaml'
|
||||
cliArguments: '--only-k8s-files'
|
||||
- name: docker login
|
||||
env:
|
||||
DOCKER_USER: ${{ secrets.DOCKER_USER }}
|
||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||
run: |
|
||||
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
|
||||
- name: build
|
||||
run: |
|
||||
docker build ./c# -t aimvector/csharp:1.0.0
|
||||
- name: push
|
||||
run: |
|
||||
docker push aimvector/csharp:1.0.0
|
||||
- name: deploy
|
||||
run: |
|
||||
echo 'deploying...'
|
Loading…
x
Reference in New Issue
Block a user