From b77ad4d085cc66058b2108b8384b15ff68bda7e9 Mon Sep 17 00:00:00 2001 From: bagas Date: Sun, 22 Jun 2025 18:32:22 +0700 Subject: [PATCH] update: move to gitea --- {.github => .gitea}/workflows/main.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) rename {.github => .gitea}/workflows/main.yml (63%) diff --git a/.github/workflows/main.yml b/.gitea/workflows/main.yml similarity index 63% rename from .github/workflows/main.yml rename to .gitea/workflows/main.yml index b34e6c2..0018a77 100644 --- a/.github/workflows/main.yml +++ b/.gitea/workflows/main.yml @@ -12,19 +12,17 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 - - - name: Set up QEMU - uses: docker/setup-qemu-action@v3 - + uses: actions/checkout@v4 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 - + - name: Log in to Docker Hub - uses: docker/login-action@v2 + uses: docker/login-action@v3 with: - username: ${{ secrets.DOCKERHUB_USERNAME }} - password: ${{ secrets.DOCKERHUB_TOKEN }} + registry: git.fossy.my.id + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} - name: Build and push Docker image for main uses: docker/build-push-action@v6 @@ -32,7 +30,7 @@ jobs: context: . push: true tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/filekeeper:latest + git.fossy.my.id/${{ secrets.DOCKER_USERNAME }}/filekeeper:latest platforms: linux/amd64,linux/arm64 if: github.ref == 'refs/heads/main' @@ -42,6 +40,6 @@ jobs: context: . push: true tags: | - ${{ secrets.DOCKERHUB_USERNAME }}/filekeeper:staging + git.fossy.my.id/${{ secrets.DOCKER_USERNAME }}/filekeeper:staging platforms: linux/amd64,linux/arm64 - if: github.ref == 'refs/heads/staging' + if: github.ref == 'refs/heads/staging' \ No newline at end of file