main (#69)
All checks were successful
Build and Deploy / build-server (push) Successful in 27s
Build and Deploy / dependency-track (push) Successful in 28s
Build and Deploy / sonarqube (push) Successful in 1m22s
Build and Deploy / build-push-server-container (push) Successful in 1m0s
Build and Deploy / dependency-track-container (push) Successful in 36s
All checks were successful
Build and Deploy / build-server (push) Successful in 27s
Build and Deploy / dependency-track (push) Successful in 28s
Build and Deploy / sonarqube (push) Successful in 1m22s
Build and Deploy / build-push-server-container (push) Successful in 1m0s
Build and Deploy / dependency-track-container (push) Successful in 36s
Reviewed-on: #69 Co-authored-by: Timothy Schenk <admin@rainote.dev> Co-committed-by: Timothy Schenk <admin@rainote.dev>
This commit is contained in:
parent
cc913a6efb
commit
1d91fe75f7
2 changed files with 14 additions and 6 deletions
|
@ -20,7 +20,7 @@ jobs:
|
|||
sonarqube:
|
||||
needs: build-server
|
||||
runs-on: ubuntu-latest
|
||||
if: gitea.ref == 'refs/heads/master'
|
||||
if: github.ref_name == 'master'
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup dotnet
|
||||
|
@ -96,19 +96,21 @@ jobs:
|
|||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: forge.rainote.dev
|
||||
registry: ${{ github.server_url }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
file: Server/Dockerfile
|
||||
push: true
|
||||
tags: wonderking/continuity:latest,"wonderking/continuity:${{ github.ref_name }}"
|
||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
||||
tags: forge.rainote.dev/${{ github.repository }}:${{ github.ref_name }}
|
||||
platforms: linux/amd64
|
||||
dependency-track-container:
|
||||
needs: build-push-server-container
|
||||
runs-on: ubuntu-latest
|
||||
container: catthehacker/ubuntu:act-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup dotnet
|
||||
|
@ -123,9 +125,15 @@ jobs:
|
|||
run: |
|
||||
mkdir ~/.docker
|
||||
curl -sSfL https://raw.githubusercontent.com/docker/sbom-cli-plugin/main/install.sh | sh -s --
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ${{ github.server_url }}
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
- name: Generate SBOM
|
||||
run: |
|
||||
docker sbom --format cyclonedx-json --output bom.json forge.rainote.dev/Wonderking/Continuity:latest
|
||||
docker sbom forge.rainote.dev/${{ github.repository }}:${{ github.ref_name }} --format cyclonedx-json --output bom.json
|
||||
- name: Upload SBOM
|
||||
uses: https://github.com/DependencyTrack/gh-upload-sbom@v2.0.1
|
||||
with:
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
server:
|
||||
image: continuity-server:latest
|
||||
image: server:latest
|
||||
environment:
|
||||
- ENVIRONMENT=Development
|
||||
- Testing:CreateAccountOnLogin=true
|
||||
|
|
Loading…
Reference in a new issue