Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
BigBoot committed Jan 5, 2024
0 parents commit 73e1ccd
Show file tree
Hide file tree
Showing 18 changed files with 4,297 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
target
config.toml
docker.sock
56 changes: 56 additions & 0 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Build and Push Docker Image

on:
push:
branches:
- master
tags:
- '*'

jobs:
build-and-push:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
with:
submodules: true

- run: git fetch --prune --unshallow --tag

- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/BigBoot/AutoKuma
tags: |
type=schedule
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{major}}
type=sha
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/target
config.toml
docker.sock
.vscode
Loading

0 comments on commit 73e1ccd

Please sign in to comment.