Skip to content

Commit 83c1a43

Browse files
committed
initial commit
1 parent c25be0b commit 83c1a43

File tree

6 files changed

+125
-1
lines changed

6 files changed

+125
-1
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/Dockerfile
2+
/LICENSE
3+
/README.md
4+
/.github

.github/renovate.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:base",
5+
"docker:enableMajor",
6+
"default:automergeDigest"
7+
],
8+
"packageRules": [
9+
{
10+
"matchDatasources": ["docker"],
11+
"matchPackageNames": [
12+
"ubuntu",
13+
"actions/checkout",
14+
"docker/setup-buildx-actio",
15+
"docker/login-action",
16+
"docker/metadata-action",
17+
"docker/build-push-action"
18+
],
19+
"matchUpdateTypes": ["minor", "patch", "pin", "digest"],
20+
"automerge": true
21+
}
22+
]
23+
}

.github/workflows/docker-publish.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: Docker
2+
3+
# This all came from github. I wrote none of it, but I did remove some bits that didn't work.
4+
5+
on:
6+
push:
7+
branches: [ "main" ]
8+
# Publish semver tags as releases.
9+
tags: [ 'v*.*.*' ]
10+
pull_request:
11+
branches: [ "main" ]
12+
13+
env:
14+
# Use docker.io for Docker Hub if empty
15+
REGISTRY: ghcr.io
16+
# github.repository as <account>/<repo>
17+
IMAGE_NAME: ${{ github.repository }}
18+
19+
jobs:
20+
build:
21+
22+
runs-on: ubuntu-latest
23+
permissions:
24+
contents: read
25+
packages: write
26+
# This is used to complete the identity challenge
27+
# with sigstore/fulcio when running outside of PRs.
28+
id-token: write
29+
30+
steps:
31+
- name: Checkout repository
32+
uses: actions/checkout@v3
33+
34+
# Workaround: https://github.com/docker/build-push-action/issues/461
35+
- name: Setup Docker buildx
36+
uses: docker/setup-buildx-action@15c905b16b06416d2086efa066dd8e3a35cc7f98
37+
38+
# Login against a Docker registry except on PR
39+
# https://github.com/docker/login-action
40+
- name: Log into registry ${{ env.REGISTRY }}
41+
if: github.event_name != 'pull_request'
42+
uses: docker/login-action@3da7dc6e2b31f99ef2cb9fb4c50fb0971e0d0139
43+
with:
44+
registry: ${{ env.REGISTRY }}
45+
username: ${{ github.actor }}
46+
password: ${{ secrets.GITHUB_TOKEN }}
47+
48+
# Extract metadata (tags, labels) for Docker
49+
# https://github.com/docker/metadata-action
50+
- name: Extract Docker metadata
51+
id: meta
52+
uses: docker/metadata-action@6c3ca5dfa6895029f82e5b2f26f060bc0d3c6a2c
53+
with:
54+
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
55+
56+
# Build and push Docker image with Buildx (don't push on PR)
57+
# https://github.com/docker/build-push-action
58+
- name: Build and push Docker image
59+
id: build-and-push
60+
uses: docker/build-push-action@55a34859132125dc0090064b58371f30aa53395a
61+
with:
62+
context: .
63+
push: ${{ github.event_name != 'pull_request' }}
64+
tags: ${{ steps.meta.outputs.tags }}
65+
labels: ${{ steps.meta.outputs.labels }}
66+
cache-from: type=gha
67+
cache-to: type=gha,mode=max

Dockerfile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Start with swag (for now).
2+
FROM ghcr.io/linuxserver/swag:latest@sha256:b2d23fc58d32abc1a8420950848ed4bfec0c694cb75c3e861f7d7758456acdef
3+
4+
# Install custom packages.
5+
ARG PACKAGES=nodejs npm
6+
RUN apk add --update ${PACKAGES}
7+
8+
LABEL org.opencontainers.image.source = "https://github.com/Notifiarr/nginx"

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2023 Notifiarr
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# nginx
2-
Custom nginx container for Notifiarr.com
2+
3+
Custom nginx container for Notifiarr.com.

0 commit comments

Comments
 (0)