Mirror of
0
fork

Configure Feed

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

Merge pull request #12 from trueberryless-org/remove-deployment.yml

Delete .github/workflows/deployment.yml

authored by

trueberryless and committed by
GitHub
9541ec90 e7822dfd

-96
-96
.github/workflows/deployment.yml
··· 1 - name: Deployment 2 - 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: 11 - 12 - # Automatically cancel in-progress actions on the same branch 13 - concurrency: 14 - group: ${{ github.workflow }}-${{ github.event_name == 'pull_request_target' && github.head_ref || github.ref }} 15 - cancel-in-progress: true 16 - 17 - env: 18 - REGISTRY: docker.io 19 - IMAGE_NAME: trueberryless/starlight-sidebar-topics-dropdown 20 - NODE_VERSION: 20 21 - 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: ./docs/package.json 41 - 42 - - name: Setup Node 43 - uses: actions/setup-node@v4 44 - with: 45 - node-version: 20 46 - cache: pnpm 47 - cache-dependency-path: ./pnpm-lock.yaml 48 - 49 - - name: Install dependencies 50 - run: pnpm install 51 - shell: bash 52 - working-directory: ./docs 53 - 54 - - name: Build Mutanuq Website 55 - run: pnpm run build 56 - shell: bash 57 - working-directory: ./docs 58 - 59 - - name: Set up Docker Buildx 60 - uses: docker/setup-buildx-action@v3 61 - 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 }} 67 - 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 }} 73 - 74 - - name: Build and push Docker image 75 - uses: docker/build-push-action@v6 76 - with: 77 - context: . 78 - push: true 79 - tags: | 80 - ${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }} 81 - ${{ env.IMAGE_NAME }}:latest 82 - labels: ${{ steps.meta.outputs.labels }} 83 - 84 - - name: Update deployment.yaml file 85 - run: | 86 - yq eval '.spec.template.spec.containers[0].image = "${{ env.IMAGE_NAME }}:${{ env.IMAGE_TAG }}"' -i manifest/deployment.yaml 87 - 88 - - uses: stefanzweifel/git-auto-commit-action@v4 89 - with: 90 - commit_message: update deployment.json container image (automated) 91 - 92 - - uses: ncipollo/release-action@v1 93 - with: 94 - tag: ${{ env.IMAGE_TAG }} 95 - makeLatest: true 96 - body: "A docker image has been deployed to [Docker Hub](https://hub.docker.com/r/${{ env.IMAGE_NAME }}/tags)."