same again with dynamodb.
This commit is contained in:
parent
3cf6e5caba
commit
8e22597f19
4 changed files with 83 additions and 0 deletions
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
|
@ -134,3 +134,30 @@ jobs:
|
|||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
dynamodb:
|
||||
needs: qc-before
|
||||
name: DynamoDB Dev Container
|
||||
uses: ./.github/workflows/dynamodb.yml
|
||||
secrets: inherit
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
minio:
|
||||
needs: qc-before
|
||||
name: Minio Dev Container
|
||||
uses: ./.github/workflows/minio.yml
|
||||
secrets: inherit
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
mongodb:
|
||||
needs: qc-before
|
||||
name: MongoDB Dev Container
|
||||
uses: ./.github/workflows/mongodb.yml
|
||||
secrets: inherit
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
|
48
.github/workflows/dynamodb.yml
vendored
Normal file
48
.github/workflows/dynamodb.yml
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
name: DynamoDB
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
dynamodb-build:
|
||||
name: "Build"
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
with:
|
||||
sparse-checkout: dynamodb
|
||||
|
||||
- uses: docker/setup-qemu-action@v3
|
||||
|
||||
- uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: "Setup: Login to Docker Hub"
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: matthewbaggett
|
||||
password: ${{ secrets.DOCKER_HUB_PASSWORD }}
|
||||
|
||||
- name: "Setup: Login to GHCR"
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: matthewbaggett
|
||||
password: ${{ secrets.GHCR_PASSWORD }}
|
||||
|
||||
- uses: docker/build-push-action@v5
|
||||
name: Build & Push
|
||||
with:
|
||||
context: dynamodb
|
||||
platforms: linux/amd64,linux/arm64
|
||||
pull: true
|
||||
push: true
|
||||
tags: |
|
||||
gone/dynamodb
|
||||
benzine/dynamodb
|
||||
ghcr.io/benzine-framework/dynamodb
|
4
dynamodb/Dockerfile
Normal file
4
dynamodb/Dockerfile
Normal file
|
@ -0,0 +1,4 @@
|
|||
FROM amazon/dynamodb-local
|
||||
HEALTHCHECK --interval=5s --timeout=3s --start-period=0s --retries=5 \
|
||||
CMD curl --silent --output /dev/null http://localhost:8000/shell/
|
||||
CMD ["-jar", "DynamoDBLocal.jar", "-sharedDb", "-dbPath", "/tmp"]
|
4
dynamodb/docker-compose.yml
Normal file
4
dynamodb/docker-compose.yml
Normal file
|
@ -0,0 +1,4 @@
|
|||
version: "3.7"
|
||||
services:
|
||||
dynamodb:
|
||||
build: .
|
Loading…
Reference in a new issue