Skip to content

Commit

Permalink
Added workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
SchrodingersGat committed Nov 20, 2024
1 parent c761452 commit e495f71
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Run CI checks

name: CI

on:
push:
pull_request:

jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build Image
uses: docker/build-push-action@v6
with:
push: false
tags: user/app:latest
29 changes: 29 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# Runs on release

name: Publish Release
on:
release:
types: [published]
permissions:
contents: read

jobs:
release:
runs-on: ubuntu-latest
name: Push image to dockerhub
permissions:
contents: write
pull-requests: write
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Build Image
uses: docker/build-push-action@v6
with:
push: false
tags: user/app:latest
Empty file added .gitignore
Empty file.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
FROM caddy:alpine AS inventree_caddy

# Copy the custom Caddyfile into the image
COPY Caddyfile /etc/caddy/Caddyfile
COPY Caddyfile /etc/caddy/Caddyfile

0 comments on commit e495f71

Please sign in to comment.