diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e69de29..2f846d1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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 \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e69de29..79387ad 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 \ No newline at end of file diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e69de29 diff --git a/Dockerfile b/Dockerfile index 753b0bb..f42d4c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,4 +5,4 @@ FROM caddy:alpine AS inventree_caddy # Copy the custom Caddyfile into the image -COPY Caddyfile /etc/caddy/Caddyfile \ No newline at end of file +COPY Caddyfile /etc/caddy/Caddyfile