forked from Cingulara/nats-client-metrics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated with new base alpine 3.20.02 image
- Loading branch information
1 parent
37f7b30
commit 4527c67
Showing
3 changed files
with
61 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: Docker Build and Test Release for GHCR tag | ||
|
||
on: | ||
push: | ||
branches: | ||
- release | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: release | ||
- name: Set Container Version | ||
run: echo "CONTAINER_VERSION=`awk '/VERSION /{print $3}' Makefile`" >> $GITHUB_ENV | ||
id: version-generator | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: '6.0.x' | ||
- name: Install dependencies | ||
run: dotnet restore src | ||
- name: Build | ||
run: dotnet build src --configuration Release --no-restore | ||
- name: Test | ||
run: dotnet test tests --verbosity normal | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: Cingulara | ||
password: ${{ secrets.OPENRMFPRO_PACKAGE_DOCKER }} | ||
- name: Set up QEMU | ||
uses: docker/setup-qemu-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
- name: Login to ghcr.io | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: DaleBinghamSoteriaSoft | ||
password: ${{ secrets.OPENRMFPRO_PACKAGE_DOCKER }} | ||
- name: Build and push | ||
id: docker_build | ||
uses: docker/build-push-action@v3 | ||
with: | ||
push: true | ||
tags: ghcr.io/soteriasoftwarellc/openrmfpro-msg-artifact:${{ env.CONTAINER_VERSION }} | ||
- name: Container image scan | ||
uses: anchore/scan-action@v3 | ||
with: | ||
image: ghcr.io/soteriasoftwarellc/openrmfpro-msg-artifact:${{ env.CONTAINER_VERSION }} | ||
registry-username: DaleBinghamSoteriaSoft | ||
registry-password: ${{ secrets.OPENRMFPRO_PACKAGE_DOCKER }} | ||
fail-build: false | ||
output-format: table |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ RUN dotnet build | |
RUN dotnet publish --runtime alpine-x64 -c Release -o out --self-contained true /p:PublishTrimmed=true | ||
|
||
# build runtime image with DoD CA Certificates | ||
FROM cingulara/openrmf-base:1.11.00 | ||
FROM cingulara/openrmf-base:1.12.00 | ||
RUN apk update && apk upgrade | ||
|
||
RUN mkdir /app | ||
|
@@ -30,4 +30,4 @@ USER 1001 | |
ENTRYPOINT ["./nats-client-metrics"] | ||
|
||
LABEL org.opencontainers.image.source https://github.com/Cingulara/nats-client-metrics | ||
LABEL maintainer="[email protected]" | ||
LABEL maintainer="[email protected]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
VERSION ?= 2.0.1 | ||
VERSION ?= 2.0.2 | ||
NAME ?= "nats-client-metrics" | ||
AUTHOR ?= "Dale Bingham" | ||
PORT_EXT ?= 7778 | ||
|