diff --git a/.github/workflows/docker-buildops-devenv.yml b/.github/workflows/docker-buildops-devenv.yml index 86b9bd6..0fd011d 100644 --- a/.github/workflows/docker-buildops-devenv.yml +++ b/.github/workflows/docker-buildops-devenv.yml @@ -51,8 +51,8 @@ jobs: uses: docker/login-action@v2 with: registry: dock.mau.dev - username: ${{ secrets.LAB_USERNAME }} - password: ${{ secrets.LAB_MAUDEV_TOKEN }} + username: ${{ secrets.GLCR_MAUDEV_DEPLOY_USERNAME }} + password: ${{ secrets.GLCR_MAUDEV_DEPLOY_TOKEN }} # Install the cosign tool except on PR # https://github.com/sigstore/cosign-installer diff --git a/.github/workflows/docker-buildops.yml b/.github/workflows/docker-buildops.yml index 4d4437c..14d8897 100644 --- a/.github/workflows/docker-buildops.yml +++ b/.github/workflows/docker-buildops.yml @@ -67,8 +67,8 @@ jobs: uses: docker/login-action@v2 with: registry: dock.mau.dev - username: ${{ secrets.LAB_USERNAME }} - password: ${{ secrets.LAB_MAUDEV_TOKEN }} + username: ${{ secrets.GLCR_MAUDEV_DEPLOY_USERNAME }} + password: ${{ secrets.GLCR_MAUDEV_DEPLOY_TOKEN }} # Install the cosign tool except on PR # https://github.com/sigstore/cosign-installer diff --git a/.github/workflows/reposync.yml b/.github/workflows/reposync.yml new file mode 100644 index 0000000..ff06e32 --- /dev/null +++ b/.github/workflows/reposync.yml @@ -0,0 +1,22 @@ +name: Repo Sync +on: + push: + schedule: + - cron: "* */3 * * *" + +jobs: + mirror: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + with: + fetch-depth: "0" + - name: Setup git + run: | + git config --global user.name "Recap Time Bot" + git config --global user.email "service-accounts+git@recaptime.dev" + git remote add gitlab "https://${{ secrets.GLCR_MAUDEV_DEPLOY_USERNAME }}:${{ secrets.GLCR_MAUDEV_DEPLOY_TOKEN }}@mau.dev/andreijiroh-dev/docker-images" + git fetch gitlab + - name: Push mirror + run: git push gitlab --mirror \ No newline at end of file