Skip to content

Commit

Permalink
Set up CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinLex committed Nov 15, 2023
1 parent 3886eb8 commit d77720c
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 162 deletions.
3 changes: 0 additions & 3 deletions .github/CODEOWNERS

This file was deleted.

33 changes: 0 additions & 33 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

23 changes: 0 additions & 23 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

9 changes: 0 additions & 9 deletions .github/dependabot.yml

This file was deleted.

12 changes: 0 additions & 12 deletions .github/pull_request_template.md

This file was deleted.

6 changes: 6 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
]
}
42 changes: 42 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
on:
push:
branches:
- main

name: Build

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

steps:
# Using git context for build, no need to check out https://github.com/docker/build-push-action#git-context

- uses: docker/setup-buildx-action@v3

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

- name: Configure docker metadata # https://docs.docker.com/build/ci/github-actions/manage-tags-labels/
id: meta
uses: docker/metadata-action@v5
with:
images: |
name=ghcr.io/unraid/nginx-otel
tags: |
type=raw,value=1.25.3-alpine3.18-slim
# IMPORTANT: Manual tag version!

- name: Build and push NGINX image
uses: docker/build-push-action@v5
with:
file: configs/nginx.Dockerfile
push: true
tags: ${{ steps.meta-nginx.outputs.tags }}
labels: ${{ steps.meta-nginx.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
82 changes: 0 additions & 82 deletions .github/workflows/nginx-otel-module-check.yml

This file was deleted.

2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM docker.io/library/alpine:3.18.4 as otel-module-builder
# IMPORTANT FOR CI/CD: Remember to bump the tag version in .github/build.yaml when bumping this tag!

WORKDIR /opt

RUN apk add \
Expand Down

0 comments on commit d77720c

Please sign in to comment.