Compare commits
	
		
			No commits in common. "master" and "feature/sz/build-actions-runner" have entirely different histories.
		
	
	
		
			master
			...
			feature/sz
		
	
		
							
								
								
									
										42
									
								
								 .gitea / workflows / build.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										42
									
								
								 .gitea / workflows / build.yaml
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,42 @@ | |||||||
|  | name: Build and push image | ||||||
|  | 
 | ||||||
|  | on: | ||||||
|  |   push: | ||||||
|  |     branches: | ||||||
|  |       - master | ||||||
|  | jobs: | ||||||
|  |   build: | ||||||
|  |     runs-on: ubuntu-latest:docker://catthehacker/ubuntu:act-latest | ||||||
|  |     container: | ||||||
|  |       image: catthehacker/ubuntu:act-latest | ||||||
|  |     #defaults: | ||||||
|  |     #  run: | ||||||
|  |     #    working-directory: /repo | ||||||
|  |     steps: | ||||||
|  |       - name: Checkout | ||||||
|  |         uses: actions/checkout@v3 | ||||||
|  |         with: | ||||||
|  |           fetch-depth: 0 # all history for all branches and tags | ||||||
|  | 
 | ||||||
|  |       - name: Login to  gitea.simonzeyer.de Repo | ||||||
|  |         uses: docker/login-action@v2 | ||||||
|  |         with: | ||||||
|  |           registry: gitea.simonzeyer.de | ||||||
|  |           username: ${{ secrets.DOCKER_REPO_USER }} | ||||||
|  |           password: ${{ secrets.DOCKER_REPO_PASSWD }} | ||||||
|  | 
 | ||||||
|  |       - name: Get Meta | ||||||
|  |         id: meta | ||||||
|  |         run: | | ||||||
|  |           echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT | ||||||
|  |           echo REPO_VERSION=$(git describe --always | sed 's/^v//') >> $GITHUB_OUTPUT           | ||||||
|  |       - name: Build and push | ||||||
|  |         uses: docker/build-push-action@v4 | ||||||
|  |         env: | ||||||
|  |           ACTIONS_RUNTIME_TOKEN: '' # See https://gitea.com/gitea/act_runner/issues/119 | ||||||
|  |         with: | ||||||
|  |           context: . | ||||||
|  |           file: ./Dockerfile      | ||||||
|  |           push: true | ||||||
|  |           tags: | | ||||||
|  |             gitea.simonzeyer.de/schuelerlabor-cleverlab/smarti:${{ steps.meta.outputs.REPO_VERSION }} | ||||||
| @ -1,11 +1,12 @@ | |||||||
| name: Build and push image | name: Build and push image | ||||||
|  | 
 | ||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
|     branches: |     branches: | ||||||
|       - master |       - master | ||||||
| jobs: | jobs: | ||||||
|   build: |   build: | ||||||
|     runs-on: ubuntu-latest |     runs-on: ubuntu-latest:docker://catthehacker/ubuntu:act-latest | ||||||
|     container: |     container: | ||||||
|       image: catthehacker/ubuntu:act-latest |       image: catthehacker/ubuntu:act-latest | ||||||
|     #defaults: |     #defaults: | ||||||
| @ -7,6 +7,6 @@ RUN npm run build  --verbose | |||||||
| 
 | 
 | ||||||
| FROM nginx:alpine | FROM nginx:alpine | ||||||
| COPY --from=build /app/build/ /usr/share/nginx/html | COPY --from=build /app/build/ /usr/share/nginx/html | ||||||
| RUN chmod 755 /usr/share/nginx/html/ -R | RUN chmod 755 /usr/share/nginx/html/ -rf | ||||||
| EXPOSE 80 | EXPOSE 80 | ||||||
| ENTRYPOINT ["sh", "-c", "cd /usr/share/nginx/html/ && nginx -g 'daemon off;'"] | ENTRYPOINT ["sh", "-c", "cd /usr/share/nginx/html/ && nginx -g 'daemon off;'"] | ||||||
| @ -70,8 +70,5 @@ | |||||||
|     ">0.2%", |     ">0.2%", | ||||||
|     "not dead", |     "not dead", | ||||||
|     "not op_mini all" |     "not op_mini all" | ||||||
|   ], |   ] | ||||||
|   "devDependencies": { |  | ||||||
|     "@babel/plugin-proposal-private-property-in-object": "7.21.11" |  | ||||||
|   } |  | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user