devel #2

Merged
marko merged 16 commits from devel into main 2024-09-26 11:40:43 +00:00
Showing only changes of commit f71f796a58 - Show all commits

View File

@ -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,16 +25,29 @@ 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: Set Docker Version - name: Login to DockerHub
id: get_version 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: | run: |
DOCKER_VERSION=$(grep -oP '(?<=^ARG VERSION=).*' Dockerfile) echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
echo "Docker version: $DOCKER_VERSION" echo REPO_VERSION=$(git describe --tags --always | sed 's/^v//') >> $GITHUB_OUTPUT
echo "::set-output name=tag::$DOCKER_VERSION"
# - name: Set Docker Version
# id: get_version
# run: |
# DOCKER_VERSION=$(grep -oP '(?<=^ARG VERSION=).*' Dockerfile)
# echo "Docker version: $DOCKER_VERSION"
# echo "::set-output name=tag::$DOCKER_VERSION"
- name: Build and push - name: Build and push
uses: docker/build-push-action@v4 uses: docker/build-push-action@v4
@ -43,4 +57,6 @@ jobs:
platforms: | platforms: |
linux/amd64 linux/amd64
push: false push: false
tags: ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.get_version.outputs.tag }} tags: |
${{ env.REGISTRY }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ steps.meta.outputs.REPO_VERSION }}
${{ env.REGISTRY }}/${{ env.DOCKER_ORG }}/${{ steps.meta.outputs.REPO_NAME }}:${{ env.DOCKER_LATEST }}