mirror of
https://github.com/zitadel/zitadel.git
synced 2025-01-08 20:27:39 +00:00
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:
parent
c8e2db3287
commit
1d0c8eff7f
38
.github/workflows/release.yml
vendored
38
.github/workflows/release.yml
vendored
@ -10,20 +10,6 @@ env:
|
|||||||
|
|
||||||
jobs:
|
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
|
angular-lint: # will be added later on
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
defaults:
|
defaults:
|
||||||
@ -83,7 +69,7 @@ jobs:
|
|||||||
|
|
||||||
go-build:
|
go-build:
|
||||||
runs-on: ubuntu-18.04
|
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 }}
|
name: Build ${{ matrix.goos }}-${{ matrix.goarch }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -125,7 +111,7 @@ jobs:
|
|||||||
path: .artifacts
|
path: .artifacts
|
||||||
- uses: docker/build-push-action@v1
|
- uses: docker/build-push-action@v1
|
||||||
with:
|
with:
|
||||||
dockerfile: build/docker/prod
|
dockerfile: build/docker/Dockerfile
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ github.token }}
|
password: ${{ github.token }}
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
@ -149,7 +135,7 @@ jobs:
|
|||||||
- uses: anchore/scan-action@master
|
- uses: anchore/scan-action@master
|
||||||
with:
|
with:
|
||||||
image-reference: "${{ env.REGISTRY }}/${{ github.repository }}/${{ env.IMAGE }}:${{ steps.vars.outputs.sha_short }}"
|
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
|
fail-build: false
|
||||||
acs-report-enable: true
|
acs-report-enable: true
|
||||||
- name: Upload Anchore Scan Report
|
- name: Upload Anchore Scan Report
|
||||||
@ -157,25 +143,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
sarif_file: results.sarif
|
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:
|
release:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
needs: [container-prod, container-test]
|
needs: [container-prod]
|
||||||
env:
|
env:
|
||||||
DOCKER_USERNAME: ${{ github.actor }}
|
DOCKER_USERNAME: ${{ github.actor }}
|
||||||
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
DOCKER_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user