main #69
2 changed files with 14 additions and 6 deletions
|
@ -20,7 +20,7 @@ jobs:
|
||||||
sonarqube:
|
sonarqube:
|
||||||
needs: build-server
|
needs: build-server
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: gitea.ref == 'refs/heads/master'
|
if: github.ref_name == 'master'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup dotnet
|
- name: Setup dotnet
|
||||||
|
@ -96,19 +96,21 @@ jobs:
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: forge.rainote.dev
|
registry: ${{ github.server_url }}
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
|
file: Server/Dockerfile
|
||||||
push: true
|
push: true
|
||||||
tags: wonderking/continuity:latest,"wonderking/continuity:${{ github.ref_name }}"
|
tags: forge.rainote.dev/${{ github.repository }}:${{ github.ref_name }}
|
||||||
platforms: linux/amd64,linux/arm64,linux/arm/v7
|
platforms: linux/amd64
|
||||||
dependency-track-container:
|
dependency-track-container:
|
||||||
needs: build-push-server-container
|
needs: build-push-server-container
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container: catthehacker/ubuntu:act-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Setup dotnet
|
- name: Setup dotnet
|
||||||
|
@ -123,9 +125,15 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
mkdir ~/.docker
|
mkdir ~/.docker
|
||||||
curl -sSfL https://raw.githubusercontent.com/docker/sbom-cli-plugin/main/install.sh | sh -s --
|
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
|
- name: Generate SBOM
|
||||||
run: |
|
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
|
- name: Upload SBOM
|
||||||
uses: https://github.com/DependencyTrack/gh-upload-sbom@v2.0.1
|
uses: https://github.com/DependencyTrack/gh-upload-sbom@v2.0.1
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
services:
|
services:
|
||||||
server:
|
server:
|
||||||
image: continuity-server:latest
|
image: server:latest
|
||||||
environment:
|
environment:
|
||||||
- ENVIRONMENT=Development
|
- ENVIRONMENT=Development
|
||||||
- Testing:CreateAccountOnLogin=true
|
- Testing:CreateAccountOnLogin=true
|
||||||
|
|
Loading…
Reference in a new issue