ci: add push to registry step to workflow
This commit is contained in:
		| @ -3,29 +3,31 @@ when: | |||||||
|     branch: [master, feature/*] |     branch: [master, feature/*] | ||||||
|  |  | ||||||
| steps: | steps: | ||||||
|   # - name: lint-frontend |   - name: lint-frontend | ||||||
|   #   image: node:24 |     image: node:24 | ||||||
|   #   commands: |     commands: | ||||||
|   #     - cd frontend |       - cd frontend | ||||||
|   #     - npm install |       - npm install | ||||||
|   #     - npm run lint |       - npm run lint | ||||||
|  |  | ||||||
|   # - name: trivy-scan |   - name: trivy-scan | ||||||
|   #   image: aquasec/trivy:latest |     image: aquasec/trivy:latest | ||||||
|   #   commands: |     commands: | ||||||
|   #     - trivy fs --scanners vuln,config --exit-code 1  --ignorefile .trivyignore --severity HIGH,CRITICAL frontend/ |       - trivy fs --scanners vuln,config --exit-code 1  --ignorefile .trivyignore --severity HIGH,CRITICAL frontend/ | ||||||
|  |  | ||||||
|   # - name: build-frontend |   - name: build-frontend | ||||||
|   #   image: node:24 |     image: node:24 | ||||||
|   #   commands: |     commands: | ||||||
|   #     - cd frontend |       - cd frontend | ||||||
|   #     - npm run build |       - npm run build | ||||||
|  |  | ||||||
|   - name: build-and-publish |   - name: build-and-publish | ||||||
|     image: woodpeckerci/plugin-docker-buildx |     image: woodpeckerci/plugin-docker-buildx | ||||||
|     settings: |     settings: | ||||||
|       registry: gitea.tahmidcloud.com |       DOCKER_REGISTRY: | ||||||
|       repo: gitea.tahmidcloud.com/taqi/portfolio |         from_secret: docker-registry | ||||||
|  |       registry: ${DOCKER_REGISTRY} | ||||||
|  |       repo: ${DOCKER_REGISTRY}/taqi/portfolio | ||||||
|       tags: |       tags: | ||||||
|         - latest |         - latest | ||||||
|         - 1.0.0-${CI_PIPELINE_NUMBER} # Ref: https://woodpecker-ci.org/docs/usage/environment |         - 1.0.0-${CI_PIPELINE_NUMBER} # Ref: https://woodpecker-ci.org/docs/usage/environment | ||||||
| @ -33,3 +35,7 @@ steps: | |||||||
|       build_args: |       build_args: | ||||||
|         - COMMIT_SHA=${CI_COMMIT_SHA} |         - COMMIT_SHA=${CI_COMMIT_SHA} | ||||||
|         - COMMIT_AUTHOR_EMAIL=${CI_COMMIT_AUTHOR_EMAIL} |         - COMMIT_AUTHOR_EMAIL=${CI_COMMIT_AUTHOR_EMAIL} | ||||||
|  |       username: | ||||||
|  |         from_secret: docker-username | ||||||
|  |       password: | ||||||
|  |         from_secret: docker-password | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user