This commit is contained in:
		
						commit
						c73e145537
					
				
					 2 changed files with 36 additions and 0 deletions
				
			
		
							
								
								
									
										32
									
								
								.forgejo/workflows/build.yaml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										32
									
								
								.forgejo/workflows/build.yaml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,32 @@
 | 
			
		|||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    tags:
 | 
			
		||||
      - "*"
 | 
			
		||||
jobs:
 | 
			
		||||
  build_docker:
 | 
			
		||||
    runs-on: docker
 | 
			
		||||
    container:
 | 
			
		||||
      image: docker.zeptotech.net/dind-node
 | 
			
		||||
      credentials:
 | 
			
		||||
        username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
 | 
			
		||||
        password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
 | 
			
		||||
    services:
 | 
			
		||||
      dind:
 | 
			
		||||
        image: docker.zeptotech.net/dind-tcp
 | 
			
		||||
        credentials:
 | 
			
		||||
          username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
 | 
			
		||||
          password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: actions/checkout@v4
 | 
			
		||||
      - uses: docker/login-action@v3
 | 
			
		||||
        with:
 | 
			
		||||
          registry: docker.zeptotech.net
 | 
			
		||||
          username: ${{ vars.DOCKER_REGISTRY_USERNAME }}
 | 
			
		||||
          password: ${{ secrets.DOCKER_REGISTRY_PASSWORD }}
 | 
			
		||||
      - uses: docker/setup-buildx-action@v3
 | 
			
		||||
        with:
 | 
			
		||||
          endpoint: tcp://dind:2375
 | 
			
		||||
      - uses: docker/build-push-action@v6
 | 
			
		||||
        with:
 | 
			
		||||
          push: true
 | 
			
		||||
          tags: zeptotech/zig-yarn:${{ github.ref_name }}
 | 
			
		||||
							
								
								
									
										4
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
FROM node:alpine
 | 
			
		||||
 | 
			
		||||
ADD https://ziglang.org/download/0.13.0/zig-linux-x86_64-0.13.0.tar.xz zig.tar.xz
 | 
			
		||||
RUN tar xvf zig.tar.xz && mv zig-linux-x86_64-0.13.0 /zig
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue