Skip to content

Commit 742a308

Browse files
committed
Feat: Add docker-build.yml to githb workflow
* Rename image to nginx-utils
1 parent d49821f commit 742a308

File tree

4 files changed

+34
-4
lines changed

4 files changed

+34
-4
lines changed

.github/workflows/docker-build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build and Push Docker Image for nginx-utils container
2+
on:
3+
push:
4+
branches:
5+
- mrajagopal-utils-pod
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout code
12+
uses: actions/checkout@v3
13+
14+
- name: Set up Docker Buildx
15+
uses: docker/setup-buildx-action@v1
16+
17+
- name: Build and push Docker image
18+
uses: docker/build-push-action@v2
19+
with:
20+
context: .
21+
file: nginx-utils/Dockerfile
22+
push: true
23+
tags: nginx-utils:latest
24+
25+
- name: Log in to GitHub Container Registry
26+
uses: docker/login-action@v3
27+
with:
28+
registry: ghcr.io
29+
username: ${{ github.repository_owner }}
30+
password: ${{ secrets.GITHUB_TOKEN }}
31+

Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
.PHONY: nginx-utils build install
12
build:
23
go build -o cmd/kubectl-nginx_supportpkg
34

4-
debugger:
5-
docker buildx build --build-context project=nginx-debugger --platform linux/amd64 -t nginx-debugger -f nginx-debugger/Dockerfile .
6-
# docker tag nginx-debugger:latest mrajagopal/f5-utils:latest
7-
# docker push mrajagopal/f5-utils:latest
5+
nginx-utils:
6+
docker buildx build --build-context project=nginx-utils --platform linux/amd64 -t nginx-utils -f nginx-utils/Dockerfile .
87

98
install: build
109
sudo cp cmd/kubectl-nginx_supportpkg /usr/local/bin
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)