|
18 | 18 | uses: Ilshidur/action-discord@master |
19 | 19 | with: |
20 | 20 | args: 'Maestro production deploy started: "${{ inputs.message }}" by ${{ github.actor }}' |
| 21 | + tag-core: |
| 22 | + runs-on: ubuntu-latest |
| 23 | + needs: discord-notify-start |
| 24 | + steps: |
| 25 | + - name: Checkout code |
| 26 | + uses: actions/checkout@v4 |
| 27 | + with: |
| 28 | + repository: kernelci/kernelci-core |
| 29 | + ref: main |
| 30 | + - name: Tag repositories |
| 31 | + run: | |
| 32 | + git config --global user.name "github-actions[bot]" |
| 33 | + git config --global user.email "github-actions[bot]@users.noreply.github.com" |
| 34 | + TAG="production-$(date +'%Y%m%d%H%M%S')" |
| 35 | + echo "Tagging repositories with tag: $TAG" |
| 36 | + git tag $TAG |
| 37 | + git push origin $TAG |
| 38 | + echo "Tagged kernelci/kernelci-core with $TAG" |
| 39 | + # Add similar tagging commands for other repositories as needed |
| 40 | + tag-pipeline: |
| 41 | + runs-on: ubuntu-latest |
| 42 | + needs: discord-notify-start |
| 43 | + steps: |
| 44 | + - name: Checkout code |
| 45 | + uses: actions/checkout@v4 |
| 46 | + with: |
| 47 | + repository: kernelci/kernelci-pipeline |
| 48 | + ref: main |
| 49 | + - name: Tag repositories |
| 50 | + run: | |
| 51 | + git config --global user.name "github-actions[bot]" |
| 52 | + git config --global user.email "github-actions[bot]@users.noreply.github.com" |
| 53 | + TAG="production-$(date +'%Y%m%d%H%M%S')" |
| 54 | + echo "Tagging repositories with tag: $TAG" |
| 55 | + git tag $TAG |
| 56 | + git remote set-url origin https://x-access-token:${{ secrets.GHPAT}}@github.com/kernelci/kernelci-pipeline.git |
| 57 | + git push origin $TAG |
| 58 | + echo "Tagged kernelci/kernelci-pipeline with $TAG" |
| 59 | + # Add similar tagging commands for other repositories as needed |
| 60 | + tag-api: |
| 61 | + runs-on: ubuntu-latest |
| 62 | + needs: discord-notify-start |
| 63 | + steps: |
| 64 | + - name: Checkout code |
| 65 | + uses: actions/checkout@v4 |
| 66 | + with: |
| 67 | + repository: kernelci/kernelci-api |
| 68 | + ref: main |
| 69 | + - name: Tag repositories |
| 70 | + run: | |
| 71 | + git config --global user.name "github-actions[bot]" |
| 72 | + git config --global user.email "github-actions[bot]@users.noreply.github.com" |
| 73 | + TAG="production-$(date +'%Y%m%d%H%M%S')" |
| 74 | + echo "Tagging repositories with tag: $TAG" |
| 75 | + git tag $TAG |
| 76 | + git remote set-url origin https://x-access-token:${{ secrets.GHPAT }}@github.com/kernelci/kernelci-api.git |
| 77 | + git push origin $TAG |
| 78 | + echo "Tagged kernelci/kernelci-api with $TAG" |
| 79 | + # Add similar tagging commands for other repositories as needed |
21 | 80 | call-docker-build: |
22 | 81 | uses: ./.github/workflows/docker_images.yml |
| 82 | + needs: [tag-core, tag-pipeline, tag-api] |
23 | 83 | secrets: inherit |
24 | 84 | with: |
25 | 85 | GIT_OWNER: 'kernelci' |
|
0 commit comments