chore(dependabot): change dockerfile name (#338)

* chore(dependabot): change dockerfile name

* chore(build): fix file reference

* chore(anchore): dockerfilename

* chore(build): clean build file

* chore(build): fix dependant job

* chore(build): fix missing job
This commit is contained in:
Florian Forster 2020-07-03 10:04:37 +02:00 committed by GitHub
parent c8e2db3287
commit 1d0c8eff7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 34 deletions

View File

@ -10,20 +10,6 @@ env:
jobs:
angular-test: # will be added later on
runs-on: ubuntu-18.04
defaults:
run:
working-directory: ./console
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ env.NODE_VERSION }}
- run: npm ci
#- run: npm test
- run: echo "replace me with real test"
angular-lint: # will be added later on
runs-on: ubuntu-18.04
defaults:
@ -83,7 +69,7 @@ jobs:
go-build:
runs-on: ubuntu-18.04
needs: [angular-build, angular-test, angular-lint, go-test] ### We need the artifact from the angular build and that's why we wait here
needs: [angular-build, angular-lint, go-test] ### We need the artifact from the angular build and that's why we wait here
name: Build ${{ matrix.goos }}-${{ matrix.goarch }}
strategy:
matrix:
@ -125,7 +111,7 @@ jobs:
path: .artifacts
- uses: docker/build-push-action@v1
with:
dockerfile: build/docker/prod
dockerfile: build/docker/Dockerfile
username: ${{ github.actor }}
password: ${{ github.token }}
registry: ${{ env.REGISTRY }}
@ -149,7 +135,7 @@ jobs:
- uses: anchore/scan-action@master
with:
image-reference: "${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE }}:${{ steps.vars.outputs.sha_short }}"
dockerfile-path: "./build/docker/prod"
dockerfile-path: "./build/docker/Dockerfile"
fail-build: false
acs-report-enable: true
- name: Upload Anchore Scan Report
@ -157,25 +143,9 @@ jobs:
with:
sarif_file: results.sarif
container-test:
runs-on: ubuntu-18.04
needs: container-prod
steps:
- name: Source checkout
uses: actions/checkout@v2
- name: Generate Short SHA Container Tag
id: vars
run: echo "::set-output name=sha_short::SHA-$(git rev-parse --short HEAD)"
- name: Check outputs
run: echo ${{ steps.vars.outputs.sha_short }}
- name: Docker Login
run: docker login $REGISTRY -u $GITHUB_ACTOR -p $GITHUB_TOKEN
- name: Docker Run Test
run: echo "replace me with real test"
release:
runs-on: ubuntu-18.04
needs: [container-prod, container-test]
needs: [container-prod]
env:
DOCKER_USERNAME: ${{ github.actor }}
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}