diff --git a/.gitea/workflows/latest.yml b/.gitea/workflows/latest.yml new file mode 100644 index 0000000..42f9e8e --- /dev/null +++ b/.gitea/workflows/latest.yml @@ -0,0 +1,38 @@ +name: Build-Latest +run-name: ${{gitea.actor}} is building latest +on: + push: + paths: + - latest/** + - .gitea/workflows/latest.yml + 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: latest + file: latest/Dockerfile + pull: true + push: true + tags: registry.astrogd.cloud/pnpm:latest, registry.astrogd.cloud/pnpm:latest-alpine, astrogd/pnpm:latest, astrogd/pnpm:latest-alpine