devel #2

Merged
marko merged 16 commits from devel into main 2024-09-26 11:40:43 +00:00
2 changed files with 23 additions and 8 deletions

View File

@ -11,8 +11,9 @@ jobs:
Explore-Gitea-Actions:
runs-on: ubuntu-latest
env:
REGISTRY: registry.tuxnet.lan
REGISTRY: git.cooltux.net
IMAGE: db/pg_dump
DOCKER_ORG: ${{ secrets.DOCKER_USERNAME }}
steps:
- name: Checkout
uses: actions/checkout@v3
@ -24,9 +25,22 @@ jobs:
uses: docker/setup-buildx-action@v2
with: # replace it with your local IP
config-inline: |
[registry."registry.tuxnet.lan"]
http = true
insecure = true
[registry."git.cooltux.net"]
http = false
insecure = false
- name: Login to DockerHub
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }} # replace it with your local IP
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Get Meta
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
# echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Set Docker Version
id: get_version
@ -42,5 +56,6 @@ jobs:
file: ./Dockerfile
platforms: |
linux/amd64
push: false
tags: ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.get_version.outputs.tag }}
push: true
tags: |
${{ env.REGISTRY }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.get_version.outputs.tag }}

View File

@ -1,10 +1,10 @@
FROM alpine:latest
LABEL maintainer="development@cooltux.net"
ARG VERSION=16-20240926
ARG VERSION=16-20240926.1
# PostgreSQL-Client installieren
RUN apk update ; \
RUN apk update --no-cache ; \
apk add --no-cache postgresql16-client
# Arbeitsverzeichnis erstellen