diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml new file mode 100644 index 0000000..7fc7fb6 --- /dev/null +++ b/.github/workflows/docker-build.yml @@ -0,0 +1,53 @@ +name: Build and Publish Docker Images + +on: + workflow_dispatch: + push: + branches: + - '**' + tags: + - 'v*.*.*' + pull_request: + +jobs: + build_and_publish: + name: Build and Publish Docker images + runs-on: ubuntu-latest + strategy: + matrix: + version: + - '3.6.6' + + steps: + - name: Checkout repository + uses: actions/checkout@3 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + + - name: Login to Container Registry + if: github.event_name != 'pull_request' + uses: docker/login-action@v1 + with: + registry: ghcr.io + username: ${{ secrets.DOCKER_REGISTRY_USERNAME }} + password: ${{ secrets.DOCKER_REGISTRY_TOKEN }} + + # GS64 base image + - name: Gather docker meta data for base image + id: docker_meta_runtime + uses: crazy-max/ghaction-docker-meta@v4 + with: + images: ghcr.io/${{ github.repository_owner }}/gs64 + + - name: Docker build and push base image + uses: docker/build-push-action@v4 + with: + context: ./source + file: ./source/Dockerfile + build-args: GS_VERSION=${{ matrix.version }} + target: docker-gs-64-base + push: ${{ github.event_name != 'pull_request' }} + tags: ${{ steps.docker_meta_runtime.outputs.tags }} + labels: ${{ steps.docker_meta_runtime.outputs.labels }} + secrets: GIT_AUTH_TOKEN=${{ secrets.DOCKER_REGISTRY_TOKEN }} diff --git a/.github/workflows/markdown-lint.yml b/.github/workflows/markdown-lint.yml new file mode 100644 index 0000000..fbb50fa --- /dev/null +++ b/.github/workflows/markdown-lint.yml @@ -0,0 +1,14 @@ +name: Markdown Lint +on: [push,pull_request,workflow_dispatch] +jobs: + remark-lint: + name: runner / markdownlint + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: markdownlint + uses: reviewdog/action-markdownlint@v0 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + fail_on_error: true + reporter: github-pr-review diff --git a/.github/workflows/shellcheck.yml b/.github/workflows/shellcheck.yml new file mode 100644 index 0000000..dabaf41 --- /dev/null +++ b/.github/workflows/shellcheck.yml @@ -0,0 +1,13 @@ +name: 'Shellcheck' + +on: [push,pull_request] + +jobs: + shellcheck: + runs-on: 'ubuntu-latest' + steps: + - uses: actions/checkout@v3 + - name: 'Run Shellcheck' + uses: reviewdog/action-shellcheck@v1 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} diff --git a/examples/.gitignore b/examples/.gitignore index f6c3bc8..f103b36 100644 --- a/examples/.gitignore +++ b/examples/.gitignore @@ -2,4 +2,4 @@ conf/* data/* logs/* locks/* -projects/* \ No newline at end of file +projects/* diff --git a/examples/docker-compose.yml b/examples/docker-compose.yml index c70ad73..f552542 100644 --- a/examples/docker-compose.yml +++ b/examples/docker-compose.yml @@ -17,4 +17,3 @@ services: - ./logs/:/opt/gemstone/logs/ - ./projects/:/opt/gemstone/projects/ - ~/.ssh/:/home/gemstone/.ssh/:ro - \ No newline at end of file