|
27 | 27 | - name: Log in to DockerHub |
28 | 28 | uses: docker/login-action@v3 |
29 | 29 | with: |
30 | | - username: ${{ secrets.DOCKERHUB_USERNAME }} |
31 | | - password: ${{ secrets.DOCKERHUB_TOKEN }} |
| 30 | + username: ${{ secrets.DOCKER_USERNAME }} |
| 31 | + password: ${{ secrets.DOCKER_TOKEN }} |
32 | 32 |
|
33 | 33 | - name: Extract metadata |
34 | 34 | id: meta |
|
41 | 41 | type=semver,pattern={{major}}.{{minor}} |
42 | 42 | type=sha,prefix= |
43 | 43 | type=raw,value=latest,enable={{is_default_branch}} |
| 44 | + labels: | |
| 45 | + org.opencontainers.image.title=OpenCodeHub |
| 46 | + org.opencontainers.image.description=A modern, self-hosted Git platform for teams that want speed, control, and clean workflows. |
| 47 | + org.opencontainers.image.url=https://github.com/swadhinbiswas/OpencodeHub |
| 48 | + org.opencontainers.image.source=https://github.com/swadhinbiswas/OpencodeHub |
| 49 | + org.opencontainers.image.licenses=MIT |
44 | 50 |
|
45 | 51 | - name: Build and push app image |
46 | 52 | uses: docker/build-push-action@v5 |
|
63 | 69 | tags: | |
64 | 70 | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-runner:latest |
65 | 71 | ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-runner:${{ github.sha }} |
| 72 | + labels: | |
| 73 | + org.opencontainers.image.title=OpenCodeHub Runner |
| 74 | + org.opencontainers.image.description=CI/CD runner for OpenCodeHub |
| 75 | + org.opencontainers.image.url=https://github.com/swadhinbiswas/OpencodeHub |
| 76 | + org.opencontainers.image.source=https://github.com/swadhinbiswas/OpencodeHub |
| 77 | + org.opencontainers.image.licenses=MIT |
66 | 78 | cache-from: type=gha |
67 | 79 | cache-to: type=gha,mode=max |
| 80 | + |
| 81 | + - name: Update Docker Hub Repository Description |
| 82 | + uses: peter-evans/dockerhub-description@v4 |
| 83 | + with: |
| 84 | + username: ${{ secrets.DOCKER_USERNAME }} |
| 85 | + password: ${{ secrets.DOCKER_TOKEN }} |
| 86 | + repository: ${{ env.IMAGE_NAME }} |
| 87 | + readme-filepath: ./README.md |
| 88 | + short-description: "A modern, self-hosted Git platform with stacked PRs, merge queue, CI/CD, and AI review." |
0 commit comments