add action workflow and change Docker file name
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				Create postgresql docker image / Explore-Gitea-Actions (push) Successful in 19s
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	Create postgresql docker image / Explore-Gitea-Actions (push) Successful in 19s
				
			This commit is contained in:
		
							
								
								
									
										46
									
								
								.gitea/workflows/build_nopush.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								.gitea/workflows/build_nopush.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,46 @@
 | 
			
		||||
name: Create postgresql docker image
 | 
			
		||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - devel
 | 
			
		||||
    paths:
 | 
			
		||||
      - "Dockerfile"
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  Explore-Gitea-Actions:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    env:
 | 
			
		||||
      REGISTRY: registry.tuxnet.lan
 | 
			
		||||
      IMAGE: db/pg_dump
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
 | 
			
		||||
      - name: Set up QEMU
 | 
			
		||||
        uses: docker/setup-qemu-action@v2
 | 
			
		||||
 | 
			
		||||
      - name: Set up Docker BuildX
 | 
			
		||||
        uses: docker/setup-buildx-action@v2
 | 
			
		||||
        with: # replace it with your local IP
 | 
			
		||||
          config-inline: |
 | 
			
		||||
            [registry."registry.tuxnet.lan"] 
 | 
			
		||||
              http = true
 | 
			
		||||
              insecure = true
 | 
			
		||||
 | 
			
		||||
      - 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
 | 
			
		||||
        uses: docker/build-push-action@v4
 | 
			
		||||
        with:
 | 
			
		||||
          context: .
 | 
			
		||||
          file: ./Dockerfile
 | 
			
		||||
          platforms: |
 | 
			
		||||
            linux/amd64
 | 
			
		||||
          push: false
 | 
			
		||||
          tags: ${{ env.REGISTRY }}/${{ env.IMAGE }}:${{ steps.get_version.outputs.tag }}
 | 
			
		||||
@@ -1,6 +1,7 @@
 | 
			
		||||
FROM alpine:latest
 | 
			
		||||
 | 
			
		||||
LABEL maintainer="development@cooltux.net"
 | 
			
		||||
ARG VERSION=16-20240926
 | 
			
		||||
 | 
			
		||||
# PostgreSQL-Client installieren
 | 
			
		||||
RUN apk update ; \
 | 
			
		||||
		Reference in New Issue
	
	Block a user