From f3cee09147b1b092df3f07643e28385670ffa60f Mon Sep 17 00:00:00 2001 From: kahootali Date: Thu, 2 Nov 2023 03:06:00 +0500 Subject: [PATCH 1/2] update pipelines and info --- .github/workflows/cd.yml | 32 +++++++++++++++++++------------- .github/workflows/ci.yml | 32 ++++++++++---------------------- Dockerfile | 2 +- tpl/home.html | 7 ++++++- tpl/inc/navbar.html | 2 +- tpl/schedule.html | 5 ++--- 6 files changed, 39 insertions(+), 41 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index d4b1434..ded315d 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -16,24 +16,23 @@ jobs: run: shell: bash steps: - - name: Set up Go 1.13 - uses: actions/setup-go@v1 + - name: Set up Go 1.20 + uses: actions/setup-go@v4 with: - go-version: 1.13 + go-version: '1.20' id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 - with: - fetch-depth: 0 + uses: actions/checkout@v4 - name: Build Code run: | go get github.com/thedevsaddam/renderer/... go build -v . + - name: Generate Version id: generate_version - uses: anothrNick/github-tag-action@1.52.0 + uses: anothrNick/github-tag-action@1.67.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} WITH_V: true @@ -56,9 +55,9 @@ jobs: echo IMAGE=$(echo "$REGISTRY/$IMAGE_ID") >> $GITHUB_ENV - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3.0.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3.0.0 - name: Login to DockerHub uses: docker/login-action@v1 with: @@ -79,17 +78,24 @@ jobs: file: ./Dockerfile pull: true push: true - build-args: BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }} - cache-to: type=inline tags: ${{ env.IMAGE }} - name: Push tag - uses: anothrNick/github-tag-action@1.52.0 + uses: anothrNick/github-tag-action@1.67.0 + id: tag_version env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} WITH_V: true DEFAULT_BUMP: "patch" + - name: Create a GitHub release + id: 'github_release' + uses: ncipollo/release-action@v1.13.0 + with: + tag: ${{ steps.tag_version.outputs.new_tag }} + name: ${{ steps.tag_version.outputs.new_tag }} + generateReleaseNotes: true + # - name: Deploy # uses: steebchen/kubectl@v2.0.0 # with: @@ -104,4 +110,4 @@ jobs: fields: repo,author,action,eventName,ref,workflow env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} \ No newline at end of file + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb9561f..53eea0c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,9 +3,6 @@ name: CI on: pull_request: -env: - IMAGE_NAME: golang-sample-app - jobs: Build-and-Push-Image: runs-on: ubuntu-latest @@ -17,14 +14,14 @@ jobs: run: shell: bash steps: - - name: Set up Go 1.13 - uses: actions/setup-go@v1 + - name: Set up Go 1.20 + uses: actions/setup-go@v4 with: - go-version: 1.13 + go-version: '1.20' id: go - name: Check out code into the Go module directory - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build Code run: | @@ -32,12 +29,13 @@ jobs: go build -v . - name: Initialize Pipeline - uses: mshick/add-pr-comment@v1 + uses: mshick/add-pr-comment@v2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - message: "@${{ github.actor }} GitHub Actions has started building this code. Check status at 'https://github.com/${{ github.repository }}/commit/${{ github.event.pull_request.head.sha }}/checks'" - allow-repeats: false + message: "@${{ github.actor }} GitHub Actions has started building this code. Check status at 'https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}'" + message-id: ${{ github.run_id }}-${{ github.run_attempt }} + - name: Generate Vars id: generate_vars run: | @@ -54,11 +52,10 @@ jobs: echo REPO=$IMAGE_NAME >> $GITHUB_ENV echo IMAGE=$(echo "$REGISTRY/$IMAGE_ID") >> $GITHUB_ENV - - name: Set up QEMU - uses: docker/setup-qemu-action@v1 + uses: docker/setup-qemu-action@v3.0.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v3.0.0 - name: Login to DockerHub uses: docker/login-action@v1 with: @@ -79,8 +76,6 @@ jobs: file: ./Dockerfile pull: true push: true - build-args: BUILD_PARAMETERS=${{ env.BUILD_PARAMETERS }} - cache-to: type=inline tags: ${{ env.IMAGE }} - name: Comment on PR @@ -99,11 +94,6 @@ jobs: with: message: '@${{ github.actor }} The pipeline failed! You better fix it before anyone else finds out! [Build](https://github.com/${{ github.repository }}/commit/${{ github.event.pull_request.head.sha }}/checks) has Failed!' allow-repeats: false - # - name: Deploy - # uses: steebchen/kubectl@v2.0.0 - # with: - # config: ${{ secrets.KUBE_CONFIG }} - # command: set image -n dev deployment/golang-deployment golang=${{ env.IMAGE }} - name: Notify Slack uses: 8398a7/action-slack@v3 @@ -114,5 +104,3 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} - - diff --git a/Dockerfile b/Dockerfile index 343cf65..ff47e77 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.17.0 as build +FROM golang:1.20 as build WORKDIR /app RUN go env -w GO111MODULE=auto diff --git a/tpl/home.html b/tpl/home.html index 65e7201..9864e89 100644 --- a/tpl/home.html +++ b/tpl/home.html @@ -13,7 +13,12 @@

Muhammad Ali Kahoot

Senior DevOps Engineer & Trainer

-

Currently working as a Senior SRE at pawaPay and previously worked as Lead/Senior DevOps Engineer at Tarabut Gateway, Abu Dhabi which is MENA’s first and largest regulated Open Banking platform and have successfully trained more than 400 professionals worldwide on DevOps and Kubernetes.

+

Currently, I am working remotely as a Senior SRE at pawaPay, a UK-based fintech company which is connects mobile money in Africa Region handling over 2 million transactions a day.

+

DevOps Consultant at Daleel

+

Part Time DevOps Trainer at Dice Analytics and have conducted more than 10 iterations

+

Former Lead DevOps Engineer at Tarabut Gateway, UAE

+

Former Team Lead, DevOps Engineer for Stakater, Sweden

+

Former Software Engineer at Bentley Systems

diff --git a/tpl/inc/navbar.html b/tpl/inc/navbar.html index a674aa8..b9952dc 100644 --- a/tpl/inc/navbar.html +++ b/tpl/inc/navbar.html @@ -8,7 +8,7 @@ - Ali Kahoot + M. Ali Kahoot