setting up container registry credentials
This commit is contained in:
		| @@ -1,3 +1,4 @@ | |||||||
|  |  | ||||||
| name: Build and publish container images | name: Build and publish container images | ||||||
|  |  | ||||||
| on: | on: | ||||||
| @@ -14,26 +15,19 @@ jobs: | |||||||
|     - name: Check out the repo |     - name: Check out the repo | ||||||
|       uses: actions/checkout@v3 |       uses: actions/checkout@v3 | ||||||
|  |  | ||||||
|     # - name: Link to docker socket |  | ||||||
|     #   run: | |  | ||||||
|     #     # ln -s ~/.docker/run/docker.sock /var/run/docker.sock |  | ||||||
|     #     ls -l /var/run/docker.sock || \ |  | ||||||
|     #     ls -l ~/.docker/run/docker.sock || \ |  | ||||||
|     #     ls -l ~/.rd/docker.sock || \ |  | ||||||
|     #     ls -l /var/run/user/1000/docker.sock |  | ||||||
|  |  | ||||||
|     - name: Set up QEMU |     - name: Set up QEMU | ||||||
|       uses: docker/setup-qemu-action@v2 |       uses: docker/setup-qemu-action@v2 | ||||||
|     #   uses: docker/setup-qemu-action@v1 |  | ||||||
|     #   with: |  | ||||||
|     #     image: tonistiigi/binfmt:qemu-v6.0.0 |  | ||||||
|  |  | ||||||
|     # - name: Install QEMU |  | ||||||
|     #   run: sudo apt-get update && sudo apt-get install -y qemu-user-static |  | ||||||
|  |  | ||||||
|     - name: Set up Docker Buildx |     - name: Set up Docker Buildx | ||||||
|       uses: docker/setup-buildx-action@v2 |       uses: docker/setup-buildx-action@v2 | ||||||
|  |  | ||||||
|  |     - name: Log in to the Container registry | ||||||
|  |       uses: docker/login-action@v2 | ||||||
|  |       with: | ||||||
|  |         registry: gitea.jbrumond.me | ||||||
|  |         username: ${{ github.actor }} | ||||||
|  |         password: ${{ secrets.GITEA_TOKEN }} | ||||||
|  |  | ||||||
|     - name: Build and push |     - name: Build and push | ||||||
|       uses: docker/build-push-action@v4 |       uses: docker/build-push-action@v4 | ||||||
|       env: |       env: | ||||||
| @@ -42,7 +36,9 @@ jobs: | |||||||
|       with: |       with: | ||||||
|         context: . |         context: . | ||||||
|         push: true |         push: true | ||||||
|         tags: gitea.jbrumond.me/images/rotate-backups:8,gitea.jbrumond.me/images/rotate-backups:8.1 |         tags: | | ||||||
|  |           gitea.jbrumond.me/images/rotate-backups:8 | ||||||
|  |           gitea.jbrumond.me/images/rotate-backups:8.1 | ||||||
|         platforms: | |         platforms: | | ||||||
|           linux/amd64 |           linux/amd64 | ||||||
|           linux/arm64  |           linux/arm64 | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user