Mirror of
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #116 from trueberryless-org/update-template-files

[ci] sync template files, deploy

authored by

trueberryless and committed by
GitHub
71666640 bd8ff300

+13 -63
+12 -62
.github/workflows/deployment.yaml
··· 124 124 shell: bash 125 125 working-directory: ./starlight 126 126 127 + - name: Build Lunaria Website 128 + run: pnpm run lunaria:build 129 + shell: bash 130 + working-directory: ./starlight 131 + 127 132 - name: Set up Docker Buildx 128 133 uses: docker/setup-buildx-action@v3 129 134 ··· 149 154 ${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:latest 150 155 labels: ${{ steps.meta.outputs.labels }} 151 156 152 - - name: Update deployment.yaml file 153 - run: | 154 - yq eval '.spec.template.spec.containers[0].image = "${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:${{ needs.image-tag.outputs.IMAGE_TAG }}"' -i manifest/deployment.yaml 155 - 156 - - uses: stefanzweifel/git-auto-commit-action@v4 157 - with: 158 - commit_message: "[ci] deployment" 159 - 160 - deployment-lunaria: 161 - needs: [changes, changesets, image-tag, deployment] 162 - if: > 163 - ( 164 - needs.changesets.outputs.hasChangesets == 'false' && 165 - ( 166 - contains(github.event.head_commit.message, 'deploy') || 167 - contains(github.event.head_commit.message, '[ci] release') 168 - ) 169 - ) || 170 - github.event_name == 'workflow_dispatch' 171 - runs-on: ubuntu-latest 172 - permissions: 173 - contents: write 174 - steps: 175 - - name: Check out the repo 176 - uses: actions/checkout@v4 177 - with: 178 - fetch-depth: 0 179 - 180 - - name: Setup PNPM 181 - uses: pnpm/action-setup@v3 182 - with: 183 - package_json_file: ./starlight/package.json 184 - 185 - - name: Setup Node 186 - uses: actions/setup-node@v4 187 - with: 188 - node-version: ${{ env.NODE_VERSION }} 189 - cache: pnpm 190 - cache-dependency-path: ./pnpm-lock.yaml 191 - 192 - - name: Install dependencies 193 - run: pnpm install 194 - shell: bash 195 - working-directory: ./starlight 196 - 197 - - name: Build Lunaria Website 198 - run: pnpm run lunaria:build 199 - shell: bash 200 - working-directory: ./starlight 201 - 202 - - name: Set up Docker Buildx 203 - uses: docker/setup-buildx-action@v3 204 - 205 - - name: Log in to Docker Hub 206 - uses: docker/login-action@v3 207 - with: 208 - username: ${{ secrets.DOCKER_USERNAME }} 209 - password: ${{ secrets.DOCKER_PASSWORD }} 210 - 211 157 - name: Extract metadata (tags, labels) for Docker 212 - id: meta 158 + id: meta-lunaria 213 159 uses: docker/metadata-action@v5 214 160 with: 215 161 images: ${{ env.REGISTRY }}/${{ env.IMAGE_OWNER }}/${{ env.LUNARIA_IMAGE_NAME }} ··· 223 169 tags: | 224 170 ${{ env.IMAGE_OWNER }}/${{ env.LUNARIA_IMAGE_NAME }}:${{ needs.image-tag.outputs.IMAGE_TAG }} 225 171 ${{ env.IMAGE_OWNER }}/${{ env.LUNARIA_IMAGE_NAME }}:latest 226 - labels: ${{ steps.meta.outputs.labels }} 172 + labels: ${{ steps.meta-lunaria.outputs.labels }} 173 + 174 + - name: Update manifest/deployment.yaml file 175 + run: | 176 + yq eval '.spec.template.spec.containers[0].image = "${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:${{ needs.image-tag.outputs.IMAGE_TAG }}"' -i manifest/deployment.yaml 227 177 228 178 - name: Update manifest-lunaria/deployment.yaml file 229 179 run: | ··· 231 181 232 182 - uses: stefanzweifel/git-auto-commit-action@v4 233 183 with: 234 - commit_message: "[ci] deployment lunaria" 184 + commit_message: "[ci] deployment" 235 185 236 186 release: 237 187 name: Release
+1 -1
manifest/deployment.yaml
··· 17 17 spec: 18 18 containers: 19 19 - name: mutanuq 20 - image: "trueberryless/mutanuq:0.1.1" 20 + image: "trueberryless/mutanuq" 21 21 imagePullPolicy: Always