.gitea/workflows/build.yml aktualisiert
This commit is contained in:
		@@ -1,18 +1,20 @@
 | 
			
		||||
name: Create dokuwiki docker image
 | 
			
		||||
name: Create postgresql docker image
 | 
			
		||||
run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀
 | 
			
		||||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    branches:
 | 
			
		||||
      - main
 | 
			
		||||
    paths:
 | 
			
		||||
      - '*Dockerfile'
 | 
			
		||||
      - "Dockerfile"
 | 
			
		||||
 | 
			
		||||
jobs:
 | 
			
		||||
  Explore-Gitea-Actions:
 | 
			
		||||
    runs-on: ubuntu-latest
 | 
			
		||||
    env:
 | 
			
		||||
      REGISTRY: registry.tuxnet.lan
 | 
			
		||||
      REGISTRY: git.cooltux.net
 | 
			
		||||
      REGISTRY_INTERN: registry.tuxnet.lan
 | 
			
		||||
      IMAGE: web/dokuwiki
 | 
			
		||||
      DOCKER_ORG: ${{ secrets.DOCKER_USERNAME }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - name: Checkout
 | 
			
		||||
        uses: actions/checkout@v3
 | 
			
		||||
@@ -24,10 +26,25 @@ jobs:
 | 
			
		||||
        uses: docker/setup-buildx-action@v2
 | 
			
		||||
        with: # replace it with your local IP
 | 
			
		||||
          config-inline: |
 | 
			
		||||
            [registry."git.cooltux.net"] 
 | 
			
		||||
              http = false
 | 
			
		||||
              insecure = false
 | 
			
		||||
            [registry."registry.tuxnet.lan"] 
 | 
			
		||||
              http = true
 | 
			
		||||
              insecure = true             
 | 
			
		||||
 | 
			
		||||
      - 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                   
 | 
			
		||||
 | 
			
		||||
      - name: Set Docker Version
 | 
			
		||||
        id: get_version
 | 
			
		||||
        run: |
 | 
			
		||||
@@ -43,4 +60,6 @@ jobs:
 | 
			
		||||
          platforms: |
 | 
			
		||||
            linux/amd64                        
 | 
			
		||||
          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 }}
 | 
			
		||||
            ${{ env.REGISTRY_INTERN }}/${{ env.IMAGE }}:${{ steps.get_version.outputs.tag }}
 | 
			
		||||
		Reference in New Issue
	
	Block a user