primeiro commit
Some checks failed
Build and Push Image / Build and push image (push) Failing after 56s
Some checks failed
Build and Push Image / Build and push image (push) Failing after 56s
This commit is contained in:
commit
d4e6194242
31
.gitea/workflows/build.yaml
Normal file
31
.gitea/workflows/build.yaml
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
name: Build and Push Image
|
||||||
|
on: [ push ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
name: Build and push image
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
container: catthehacker/ubuntu:act-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to Docker Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.aehoo.net
|
||||||
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
push: true
|
||||||
|
platforms: linux/amd64
|
||||||
|
tags: |
|
||||||
|
git.aehoo.net/alphard/mariadb:${{env.GITHUB_SHA}}
|
12
Dockerfile
Normal file
12
Dockerfile
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
FROM alpine:3.19
|
||||||
|
COPY mariadb-server.cnf /etc/my.cnf.d/mariadb-server.cnf
|
||||||
|
COPY run /usr/local/bin/run
|
||||||
|
RUN chmod +x /usr/local/bin/run &&\
|
||||||
|
apk update &&\
|
||||||
|
apk add mariadb
|
||||||
|
VOLUME /var/lib/mysql
|
||||||
|
VOLUME /var/log/mysql
|
||||||
|
ENTRYPOINT ["/usr/local/bin/run"]
|
||||||
|
EXPOSE 3306
|
||||||
|
# galera
|
||||||
|
# EXPOSE 4567 4568 4444
|
13
mariadb-server.cnf
Normal file
13
mariadb-server.cnf
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[server]
|
||||||
|
|
||||||
|
[mysqld]
|
||||||
|
|
||||||
|
[galera]
|
||||||
|
bind-address=0.0.0.0
|
||||||
|
|
||||||
|
[embedded]
|
||||||
|
|
||||||
|
[mariadb]
|
||||||
|
|
||||||
|
[mariadb-10.5]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user