Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added workflow files #1

Merged
merged 1 commit into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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