Skip to content

Commit 7ac7304

Browse files
committed
First commit
0 parents  commit 7ac7304

3 files changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/docker.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build docker image
2+
on:
3+
push:
4+
tags:
5+
- '*'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
14+
- name: Docker meta
15+
id: meta
16+
uses: docker/metadata-action@v4
17+
with:
18+
images: ghcr.io/${{ github.repository_owner }}/adminer-sqlite
19+
20+
- name: Set up QEMU
21+
uses: docker/setup-qemu-action@v2
22+
23+
- name: Set up Docker Buildx
24+
uses: docker/setup-buildx-action@v2
25+
26+
- name: Login to GitHub Container Registry
27+
uses: docker/login-action@v2
28+
with:
29+
registry: ghcr.io
30+
username: ${{ github.repository_owner }}
31+
password: ${{ secrets.GITHUB_TOKEN }}
32+
33+
- name: Build and push
34+
uses: docker/build-push-action@v4
35+
with:
36+
context: .
37+
platforms: linux/amd64,linux/arm64
38+
push: true
39+
tags: ${{ steps.meta.outputs.tags }}

Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM adminer:4.8.1-standalone
2+
3+
COPY login-password-less.php /var/www/html/plugins-enabled/login-password-less.php

login-password-less.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
require_once('plugins/login-password-less.php');
3+
4+
return new AdminerLoginPasswordLess(password_hash("admin", PASSWORD_DEFAULT));

0 commit comments

Comments
 (0)