Skip to content

Commit

Permalink
update pipelines and info
Browse files Browse the repository at this point in the history
  • Loading branch information
kahootali committed Nov 1, 2023
1 parent cd5d458 commit f3cee09
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 41 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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/[email protected]
uses: anothrNick/[email protected]
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/[email protected]
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: ${{ steps.tag_version.outputs.new_tag }}
generateReleaseNotes: true

# - name: Deploy
# uses: steebchen/[email protected]
# with:
Expand All @@ -104,4 +110,4 @@ jobs:
fields: repo,author,action,eventName,ref,workflow
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
32 changes: 10 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: CI
on:
pull_request:

env:
IMAGE_NAME: golang-sample-app

jobs:
Build-and-Push-Image:
runs-on: ubuntu-latest
Expand All @@ -17,27 +14,28 @@ 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: |
go get github.com/thedevsaddam/renderer/...
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: |
Expand All @@ -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:
Expand All @@ -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
Expand All @@ -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/[email protected]
# with:
# config: ${{ secrets.KUBE_CONFIG }}
# command: set image -n dev deployment/golang-deployment golang=${{ env.IMAGE }}

- name: Notify Slack
uses: 8398a7/action-slack@v3
Expand All @@ -114,5 +104,3 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}


2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 6 additions & 1 deletion tpl/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@
<div class="starter-template">
<h1>Muhammad Ali Kahoot</h1>
<h3> Senior DevOps Engineer & Trainer </h3>
<p class="lead"> 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. </p>
<p class="lead"> 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. </p>
<p class="lead"> DevOps Consultant at Daleel </p>
<p class="lead"> Part Time DevOps Trainer at Dice Analytics and have conducted more than 10 iterations </p>
<p class="lead"> Former Lead DevOps Engineer at Tarabut Gateway, UAE </p>
<p class="lead"> Former Team Lead, DevOps Engineer for Stakater, Sweden </p>
<p class="lead"> Former Software Engineer at Bentley Systems </p>

</div>

Expand Down
2 changes: 1 addition & 1 deletion tpl/inc/navbar.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Ali Kahoot</a>
<a class="navbar-brand" href="#">M. Ali Kahoot</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
Expand Down
5 changes: 2 additions & 3 deletions tpl/schedule.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@

<div class="starter-template">
<h1>Public Talks</h1>
<h3>DevOps 10 batch in progress</h3>
<p class="lead"> Delivered a Seminar on DevOps for Google Cloud DevFest</p>
<p class="lead"> Speaker at DevOpsCon Singapore 2021</p>
<p class="lead"> Speaker at DevOpsCon Singapore</p>
<p class="lead"> Speaker at S&P Global DevOps Week</p>
<p class="lead"> Speaker for Data on Kubernetes Community</p>
<p class="lead"> Presented 4 Seminars/Webinars on DevOps</p>
<p class="lead"> Have conducted 9 iterations of full 8-weeks DevOps Course</p>
<p class="lead"> Have conducted 10 iterations of full 8-weeks DevOps Course</p>
<p class="lead"> Have conducted 10 Bootcamps on Kubernetes for worldwide professionals</p>
</div>

Expand Down

0 comments on commit f3cee09

Please sign in to comment.