Skip to content

Commit 41ebc92

Browse files
committed
0 parents  commit 41ebc92

18 files changed

+1212
-0
lines changed

.editorconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 4
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[Makefile]
11+
indent_style = tab

.github/workflows/build.yml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: Build and test container
2+
on: [push]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v3
9+
- name: Build image
10+
run: make docker-build
11+
- name: Test image
12+
run: make test

.github/workflows/publish.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Docker image
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
push_to_registry:
8+
name: Push Docker image to GitHub Packages
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Check out the repo
12+
uses: actions/checkout@v3
13+
- name: Login to GitHub registry
14+
uses: docker/login-action@v1
15+
with:
16+
registry: ghcr.io
17+
username: ${{ github.repository_owner }}
18+
password: ${{ secrets.GITHUB_TOKEN }}
19+
20+
- name: Build image
21+
run: IMAGE_TAG="ghcr.io/sudo-bot/docker-phpldapadmin/docker-phpldapadmin" make docker-build
22+
23+
- name: Test image
24+
run: IMAGE_TAG="ghcr.io/sudo-bot/docker-phpldapadmin/docker-phpldapadmin" make docker-test
25+
26+
- name: Push to GitHub Packages
27+
run: docker push ghcr.io/sudo-bot/docker-phpldapadmin/docker-phpldapadmin:latest

0 commit comments

Comments
 (0)