Mirror of
0
fork

Configure Feed

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

remove commits to main

+64 -80
+64 -72
.github/workflows/deployment-lunaria.yaml
··· 1 1 name: Deployment Lunaria 2 2 3 3 on: 4 - push: 5 - branches: [main] 6 - merge_group: 7 - pull_request: 8 - branches: [main] 9 - # Allows you to run this workflow manually from the Actions tab 10 - workflow_dispatch: 4 + push: 5 + branches: [main] 6 + merge_group: 7 + pull_request: 8 + branches: [main] 9 + # Allows you to run this workflow manually from the Actions tab 10 + workflow_dispatch: 11 11 12 12 # Automatically cancel in-progress actions on the same branch 13 13 concurrency: 14 - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} 15 - cancel-in-progress: true 14 + group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} 15 + cancel-in-progress: true 16 16 17 17 env: 18 - REGISTRY: docker.io 19 - IMAGE_NAME: trueberryless/i18n-mutanuq 20 - NODE_VERSION: 20 18 + REGISTRY: docker.io 19 + IMAGE_NAME: trueberryless/i18n-mutanuq 20 + NODE_VERSION: 20 21 21 22 22 jobs: 23 - deployment: 24 - if: contains(github.event.head_commit.message, 'deploy') || github.event_name == 'workflow_dispatch' 25 - runs-on: ubuntu-latest 26 - permissions: 27 - contents: write 28 - steps: 29 - - name: Check out the repo 30 - uses: actions/checkout@v4 31 - with: 32 - fetch-depth: 0 33 - 34 - - name: Create tag 35 - run: echo "IMAGE_TAG=$(echo $GITHUB_REF_NAME-$GITHUB_SHA)" >> $GITHUB_ENV 36 - 37 - - name: Setup PNPM 38 - uses: pnpm/action-setup@v3 39 - with: 40 - package_json_file: ./starlight/package.json 23 + deployment: 24 + if: contains(github.event.head_commit.message, 'deploy') || github.event_name == 'workflow_dispatch' 25 + runs-on: ubuntu-latest 26 + permissions: 27 + contents: write 28 + steps: 29 + - name: Check out the repo 30 + uses: actions/checkout@v4 31 + with: 32 + fetch-depth: 0 41 33 42 - - name: Setup Node 43 - uses: actions/setup-node@v4 44 - with: 45 - node-version: 20 46 - cache: pnpm 47 - cache-dependency-path: ./starlight/pnpm-lock.yaml 34 + - name: Create tag 35 + run: echo "IMAGE_TAG=$(echo $GITHUB_REF_NAME-$GITHUB_SHA)" >> $GITHUB_ENV 48 36 49 - - name: Install dependencies 50 - run: pnpm install 51 - shell: bash 52 - working-directory: ./starlight 37 + - name: Setup PNPM 38 + uses: pnpm/action-setup@v3 39 + with: 40 + package_json_file: ./starlight/package.json 53 41 54 - - name: Build Lunaria Website 55 - run: pnpm run lunaria:build 56 - shell: bash 57 - working-directory: ./starlight 42 + - name: Setup Node 43 + uses: actions/setup-node@v4 44 + with: 45 + node-version: 20 46 + cache: pnpm 47 + cache-dependency-path: ./starlight/pnpm-lock.yaml 58 48 59 - - name: Set up Docker Buildx 60 - uses: docker/setup-buildx-action@v3 49 + - name: Install dependencies 50 + run: pnpm install 51 + shell: bash 52 + working-directory: ./starlight 61 53 62 - - name: Log in to Docker Hub 63 - uses: docker/login-action@v3 64 - with: 65 - username: ${{ secrets.DOCKER_USERNAME }} 66 - password: ${{ secrets.DOCKER_PASSWORD }} 54 + - name: Build Lunaria Website 55 + run: pnpm run lunaria:build 56 + shell: bash 57 + working-directory: ./starlight 67 58 68 - - name: Extract metadata (tags, labels) for Docker 69 - id: meta 70 - uses: docker/metadata-action@v5 71 - with: 72 - images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 59 + - name: Set up Docker Buildx 60 + uses: docker/setup-buildx-action@v3 73 61 74 - - name: Build and push Docker image 75 - uses: docker/build-push-action@v6 76 - with: 77 - context: . 78 - file: ./starlight/lunaria/Dockerfile 79 - push: true 80 - tags: | 81 - ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} 82 - ${{ env.IMAGE_NAME }}:latest 83 - labels: ${{ steps.meta.outputs.labels }} 62 + - name: Log in to Docker Hub 63 + uses: docker/login-action@v3 64 + with: 65 + username: ${{ secrets.DOCKER_USERNAME }} 66 + password: ${{ secrets.DOCKER_PASSWORD }} 84 67 85 - - name: Update manifest-lunaria/deployment.yaml file 86 - run: | 87 - yq eval '.spec.template.spec.containers[0].image = "${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}"' -i manifest-lunaria/deployment.yaml 68 + - name: Extract metadata (tags, labels) for Docker 69 + id: meta 70 + uses: docker/metadata-action@v5 71 + with: 72 + images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} 88 73 89 - - uses: stefanzweifel/git-auto-commit-action@v4 90 - with: 91 - commit_message: update manifest-lunaria/deployment.json container image (automated) 74 + - name: Build and push Docker image 75 + uses: docker/build-push-action@v6 76 + with: 77 + context: . 78 + file: ./starlight/lunaria/Dockerfile 79 + push: true 80 + tags: | 81 + ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} 82 + ${{ env.IMAGE_NAME }}:latest 83 + labels: ${{ steps.meta.outputs.labels }}
-8
.github/workflows/deployment.yaml
··· 149 149 ${{ env.IMAGE_OWNER }}/${{ env.IMAGE_NAME }}:latest 150 150 labels: ${{ steps.meta.outputs.labels }} 151 151 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: update deployment.json container image (automated) 159 - 160 152 release: 161 153 name: Release 162 154 needs: [image-tag, deployment]