diff --git a/.gitea/workflows/lts.yml b/.gitea/workflows/lts.yml new file mode 100644 index 0000000..10b4c8e --- /dev/null +++ b/.gitea/workflows/lts.yml @@ -0,0 +1,37 @@ +name: Build-LTS +run-name: ${{gitea.actor}} is building lts +on: + push: + paths: + - lts/** + schedule: + - cron: "0 0 * * *" + +jobs: + build-lts: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to internal registry + uses: docker/login-action@v3 + with: + registry: registry.astrogd.cloud + username: ${{ secrets.REGISTRY_INTERNAL_USERNAME }} + password: ${{ secrets.REGISTRY_INTERNAL_PASSWORD }} + - name: Login to dockerhub registry + uses: docker/login-action@v3 + with: + registry: docker.io + username: ${{ secrets.REGISTRY_DOCKERHUB_USERNAME }} + password: ${{ secrets.REGISTRY_DOCKERHUB_PASSWORD }} + - name: Build and push image + uses: docker/build-push-action@v7 + with: + context: lts + file: lts/Dockerfile + pull: true + push: true + tags: registry.astrogd.cloud/pnpm:lts, registry.astrogd.cloud/pnpm:lts-alpine, astrogd/pnpm:lts, astrogd/pnpm:lts-alpine