Skip to content

Commit

Permalink
updated with new base alpine 3.20.02 image
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleBinghamSoteriaSoft committed Sep 16, 2024
1 parent 37f7b30 commit 4527c67
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 3 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/dockerbuildmaster.yml
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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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]"
2 changes: 1 addition & 1 deletion Makefile
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
Expand Down

0 comments on commit 4527c67

Please sign in to comment.