-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (29 loc) · 1.01 KB
/
rundeck-container.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Build And Publish Rundeck Alpine Container
on: [push]
jobs:
build-rundeck-alpine:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build rundeck-alpine/ -t setkeh/rundeck-alpine:latest
- uses: anchore/scan-action@v2
with:
image: "setkeh/rundeck-alpine:latest"
fail-build: true
severity-cutoff: critical
- name: anchore inline scan JSON results
run: for j in `ls ./anchore-reports/*.json`; do echo "---- ${j} ----"; cat ${j}; echo; done
- uses: actions/upload-artifact@v1
if: failure()
with:
name: rundeck-alpine-failure-reports
path: ./anchore-reports
- uses: actions/upload-artifact@v1
with:
name: rundeck-alpine-reports
path: ./anchore-reports
- name: Docker Login
run: docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
- name: Publish Docker Image
run: docker push setkeh/rundeck-alpine:latest