devel #2
@ -11,8 +11,9 @@ jobs:
|
|||||||
Explore-Gitea-Actions:
|
Explore-Gitea-Actions:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
REGISTRY: registry.tuxnet.lan
|
REGISTRY: git.cooltux.net
|
||||||
IMAGE: db/pg_dump
|
IMAGE: db/pg_dump
|
||||||
|
DOCKER_ORG: ${{ secrets.DOCKER_USERNAME }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -24,9 +25,22 @@ jobs:
|
|||||||
uses: docker/setup-buildx-action@v2
|
uses: docker/setup-buildx-action@v2
|
||||||
with: # replace it with your local IP
|
with: # replace it with your local IP
|
||||||
config-inline: |
|
config-inline: |
|
||||||
[registry."registry.tuxnet.lan"]
|
[registry."git.cooltux.net"]
|
||||||
http = true
|
http = false
|
||||||
insecure = true
|
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
|
- name: Set Docker Version
|
||||||
id: get_version
|
id: get_version
|
||||||
@ -42,5 +56,6 @@ jobs:
|
|||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
push: false
|
push: true
|
||||||
tags: ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.get_version.outputs.tag }}
|
tags: |
|
||||||
|
${{ env.REGISTRY }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.get_version.outputs.tag }}
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
LABEL maintainer="development@cooltux.net"
|
LABEL maintainer="development@cooltux.net"
|
||||||
ARG VERSION=16-20240926
|
ARG VERSION=16-20240926.1
|
||||||
|
|
||||||
# PostgreSQL-Client installieren
|
# PostgreSQL-Client installieren
|
||||||
RUN apk update ; \
|
RUN apk update --no-cache ; \
|
||||||
apk add --no-cache postgresql16-client
|
apk add --no-cache postgresql16-client
|
||||||
|
|
||||||
# Arbeitsverzeichnis erstellen
|
# Arbeitsverzeichnis erstellen
|
||||||
|
Loading…
Reference in New Issue
Block a user