From f17f871b9008074cf2661c7c785699654bacd4b7 Mon Sep 17 00:00:00 2001 From: James Brumond Date: Wed, 16 Aug 2023 16:31:11 -0700 Subject: [PATCH] setting up container registry credentials --- .gitea/workflows/build.yaml | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 4e2363a..88ad3e0 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -1,3 +1,4 @@ + name: Build and publish container images on: @@ -14,26 +15,19 @@ jobs: - name: Check out the repo 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 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 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 uses: docker/build-push-action@v4 env: @@ -42,7 +36,9 @@ jobs: with: context: . 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: | linux/amd64 - linux/arm64 \ No newline at end of file + linux/arm64