name: images on: push: branches: [develop, master] tags: ['v*'] env: REGISTRY: git.security-command.org/securitycommand jobs: check: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: node-version: 24 - run: corepack pnpm install --frozen-lockfile - run: corepack pnpm typecheck - run: corepack pnpm test sandbox: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Log in to the registry run: > echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin - name: Build and push run: | image="$REGISTRY/homepage-sandbox" docker build -t "$image:${{ gitea.sha }}" -t "$image:${{ gitea.ref_name }}" sandbox/ docker push --all-tags "$image" spawner: needs: check runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Log in to the registry run: > echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin - name: Build and push run: | image="$REGISTRY/homepage-spawner" docker build -f apps/spawner/Dockerfile -t "$image:${{ gitea.sha }}" -t "$image:${{ gitea.ref_name }}" . docker push --all-tags "$image" backend: needs: check runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Log in to the registry run: > echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "${REGISTRY%%/*}" -u "${{ secrets.REGISTRY_USER }}" --password-stdin - name: Build and push run: | image="$REGISTRY/homepage-backend" docker build -f apps/backend/Dockerfile -t "$image:${{ gitea.sha }}" -t "$image:${{ gitea.ref_name }}" . docker push --all-tags "$image"