Compare commits
2 Commits
2cc6ab0808
...
work
Author | SHA1 | Date | |
---|---|---|---|
f04586419f | |||
6a7160be41 |
28
.gitea/workflows/check-build.yml
Normal file
28
.gitea/workflows/check-build.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
Name: Terraform Processing
|
||||||
|
run-name: ${{ gitea.actor }}
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- "**"
|
||||||
|
- "!master"
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Plan:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: ./
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
#
|
||||||
|
- name: List Contents
|
||||||
|
id: ls
|
||||||
|
run: ls -al
|
||||||
|
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin
|
||||||
|
docker build -t git.hamik.net/paradizelost/proftpd:latest .
|
24
.gitea/workflows/push-build.yml
Normal file
24
.gitea/workflows/push-build.yml
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
Name: Container Build Push
|
||||||
|
run-name: ${{ gitea.actor }}
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
types: [closed]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Plan:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: List Contents
|
||||||
|
id: ls
|
||||||
|
run: ls -al
|
||||||
|
|
||||||
|
- name: Deploy
|
||||||
|
run: |
|
||||||
|
echo "${{ secrets.GITEASECRET_TOKEN }}" | docker login git.hamik.net -u paradizelost --password-stdin
|
||||||
|
docker build -t git.hamik.net/paradizelost/proftpd:latest .
|
||||||
|
docker push git.hamik.net/paradizelost/proftpd
|
@@ -1,6 +1,5 @@
|
|||||||
FROM debian:bullseye-slim
|
FROM debian:trixie-slim
|
||||||
RUN apt update && apt install -y proftpd && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
RUN apt update && apt install -y proftpd && apt clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* && sed -i "s/# DefaultRoot/DefaultRoot /" /etc/proftpd/proftpd.conf
|
||||||
RUN sed -i "s/# DefaultRoot/DefaultRoot /" /etc/proftpd/proftpd.conf
|
|
||||||
EXPOSE 20 21
|
EXPOSE 20 21
|
||||||
ADD docker-entrypoint.sh /usr/local/sbin/docker-entrypoint.sh
|
ADD docker-entrypoint.sh /usr/local/sbin/docker-entrypoint.sh
|
||||||
ENTRYPOINT ["/usr/local/sbin/docker-entrypoint.sh"]
|
ENTRYPOINT ["/usr/local/sbin/docker-entrypoint.sh"]
|
||||||
|
Reference in New Issue
Block a user