Skip to content

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
raimannma committed Sep 19, 2024
0 parents commit 3f63427
Show file tree
Hide file tree
Showing 18 changed files with 1,479 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docker-image-staging.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: docker-image-staging

on:
workflow_dispatch:
push:
branches:
- 'staging'

permissions:
contents: read
packages: write

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Compose
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/${{ github.repository }}:staging
37 changes: 37 additions & 0 deletions .github/workflows/docker-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: docker-image

on:
workflow_dispatch:
push:
branches:
- 'master'

permissions:
contents: read
packages: write

concurrency:
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and Push Compose
uses: docker/build-push-action@v6
with:
push: true
tags: ghcr.io/${{ github.repository }}:latest
26 changes: 26 additions & 0 deletions .github/workflows/lint-dockerfiles.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: lint-dockerfiles

on:
push:
branches:
- master
pull_request:
paths:
- 'Dockerfile'
- 'docker-compose.yaml'

permissions:
contents: read

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint Docker Compose files
run: docker compose config -q --no-interpolate || exit 1
- name: Lint Dockerfiles
uses: hadolint/[email protected]
with:
ignore: "DL3013"
16 changes: 16 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: pre-commit

on:
pull_request:
push:
branches: [master]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: pre-commit/[email protected]
11 changes: 11 additions & 0 deletions .github/workflows/secret-scanner.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Checking for Secrets
on: push
jobs:
check-secrets:
name: Checking for Secrets
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Secret Scanner
uses: secret-scanner/[email protected]
Loading

0 comments on commit 3f63427

Please sign in to comment.