diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 95520b4e..00000000 --- a/.dockerignore +++ /dev/null @@ -1,24 +0,0 @@ -**/.classpath -**/.dockerignore -**/.env -**/.git -**/.gitignore -**/.project -**/.settings -**/.toolstarget -**/.vs -**/.vscode -**/*.*proj.user -**/*.dbmdl -**/*.jfm -**/bin -**/charts -**/docker-compose* -**/compose* -**/Dockerfile* -**/node_modules -**/npm-debug.log -**/obj -**/secrets.dev.yaml -**/values.dev.yaml -README.md diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 79fffdef..811d1fdf 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -176,41 +176,10 @@ jobs: - name: Push nuget package run: dotnet nuget push "artifacts/*.nupkg" --api-key ${{ secrets.NUGET_PAT }} --source "nuget.org" - build-release-docker-image: - name: Build & Release Docker image - runs-on: ubuntu-latest - needs: [ sca, unit-tests, integration-tests, nuget-package ] - if: github.event_name == 'push' && !startsWith(github.event.head_commit.message, 'Update tools') && github.actor != 'dependabot[bot]' - - steps: - - uses: actions/checkout@v4 - - - name: Set Docker image name - run: | - echo "docker-image-name=${{ env.docker-image-name }}:v${{ env.build-version-number }}" >> $GITHUB_ENV - - - name: Set Preview Docker image name - if: ${{ github.ref != 'refs/heads/main' }} - run: | - echo "docker-image-name=${{ env.docker-image-name }}-preview" >> $GITHUB_ENV - - - name: Build docker image - run: docker build -t ${{ env.docker-image-name }} --build-arg BuildVersion=${{ env.build-version-number }} . - - - name: Login to GitHub Container Registry - uses: docker/login-action@v3 - with: - registry: ghcr.io - username: ${{ github.repository_owner }} - password: ${{ secrets.GHCR }} - - - name: Push docker image - run: docker push ${{ env.docker-image-name }} - gh-release: name: Github release runs-on: ubuntu-latest - needs: [ nuget-release, build-release-docker-image ] + needs: [ nuget-release ] if: github.event_name == 'push' && github.ref == 'refs/heads/main' steps: diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index 1742d787..00000000 --- a/Dockerfile +++ /dev/null @@ -1,28 +0,0 @@ -ARG BuildVersion - -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS base -ARG BuildVersion -WORKDIR /app - -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build -ARG BuildVersion -WORKDIR /src - -COPY ["src/pkgchk-cli/pkgchk-cli.fsproj", "src/pkgchk-cli/"] -RUN dotnet restore "src/pkgchk-cli/pkgchk-cli.fsproj" -COPY . . -WORKDIR "/src/src/pkgchk-cli" -RUN dotnet tool restore -RUN dotnet restore -RUN dotnet build "pkgchk-cli.fsproj" -c Release -o /app/build /p:AssemblyInformationalVersion=${BuildVersion} /p:AssemblyFileVersion=${BuildVersion} /p:NuGetVersion=${BuildVersion} - -FROM build AS publish -ARG BuildVersion -RUN dotnet publish "pkgchk-cli.fsproj" -c Release -o /app/publish /p:AssemblyInformationalVersion=${BuildVersion} /p:Version=${BuildVersion} --os linux --arch x64 --self-contained - -LABEL org.opencontainers.image.source https://github.com/tonycknight/pkgchk-cli - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "/app/pkgchk-cli.dll"] diff --git a/docker-compose.debug.yml b/docker-compose.debug.yml deleted file mode 100644 index fc942ecc..00000000 --- a/docker-compose.debug.yml +++ /dev/null @@ -1,11 +0,0 @@ - -version: '3.4' - -services: - tubescan: - image: pkgchk-cli - build: - context: . - dockerfile: src/TubeScan/Dockerfile - volumes: - - ~/.vsdbg:/remote_debugger:rw diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index dba340c2..00000000 --- a/docker-compose.yml +++ /dev/null @@ -1,9 +0,0 @@ - -version: '3.4' - -services: - tubescan: - image: pkgchk-cli - build: - context: . - dockerfile: Dockerfile diff --git a/report/pkgchk.md b/report/pkgchk.md deleted file mode 100644 index 4123d125..00000000 --- a/report/pkgchk.md +++ /dev/null @@ -1,7 +0,0 @@ -# :heavy_check_mark: No vulnerabilities found! - ---- - -_With :heart: from [pkgchk-cli](https://github.com/tonycknight/pkgchk-cli) Thank you for using my software_ - ----