first shot at building postfix container
Some checks failed
Build OCI Containers / Build Containers (push) Failing after 16s

This commit is contained in:
Stefan Harmuth 2023-11-04 14:10:47 +01:00
parent f8e33aae27
commit c2b2880edb
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,39 @@
name: Build OCI Containers
on:
push:
jobs:
build-container:
name: Build Containers
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_HOST: tcp://docker:2376
DOCKER_CERT_PATH: /certs/client
DOCKER_TLS_VERIFY: 1
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Docker Certs
run: |-
mkdir -p /certs/client
echo "${{ secrets.DOCKER_CERT }}" > /certs/client/cert.pem
echo "${{ secrets.DOCKER_KEY }}" > /certs/client/key.pem
echo "${{ secrets.DOCKER_CA }}" > /certs/client/ca.pem
- name: Login to Gitea registry
uses: docker/login-action@v2
with:
registry: git.domainforge.de
username: ${{ gitea.actor }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push Postfix Container
uses: docker/build-push-action@v2
with:
context: postfix
file: Dockerfile
push: true
tags: git.domainforge.de/public/postfix:latest

13
postfix/Dockerfile Normal file
View File

@ -0,0 +1,13 @@
FROM debian:bookworm-slim
RUN apt-get update && \
apt-get -y upgrade && \
apt-get -y --purge autoremove && \
apt-get -y install postfix && \
apt-get -y clean
EXPOSE 25/tcp
EXPOSE 465/tcp
EXPOSE 587/tcp
CMD ["/usr/sbin/postfix", "start-fg"]