Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 23 additions & 28 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,29 @@ name: docker-build
on:
workflow_dispatch:

jobs:
docker:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
permissions:
contents: read

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
jobs:
build:
uses: docker/github-builder/.github/workflows/build.yml@v1
permissions:
contents: read
id-token: write
with:
context: .
build-args: |
node_version=20
output: image
push: true
platforms: linux/amd64,linux/arm64
distribute: true
sign: auto
meta-images: cardiacmodelling/ap-nimbus-app-manager
meta-tags: |
type=semver,pattern={{version}},value=2.0.0
secrets:
registry-auths: |
- registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
pull: true
push: true
build-args: |
node_version=20
tags: |
cardiacmodelling/ap-nimbus-app-manager:2.0.0
cardiacmodelling/ap-nimbus-app-manager:latest
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
/run/
/.project
/node_modules

.DS_Store
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
# Building the image locally:
# docker build -t cardiacmodelling/ap-nimbus-app-manager:local .

# Starting a container:
# docker run --init -it -p 8080:8080 cardiacmodelling/ap-nimbus-app-manager:local

# If the FROM is changed then server.js's OPTION's help facility may require
# modification to reflect different ApPredict help or lookup availability.
FROM cardiacmodelling/appredict-with-emulators:2.0.0

LABEL version="2.0.0"

ARG node_version=20

USER root
Expand Down