Skip to content

Commit 6ee1fd2

Browse files
Merge pull request #2 from devwithkrishna/feature/v1
github workflow forimage push
2 parents a87972e + 74d4acb commit 6ee1fd2

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/image.yml

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: build-publish-jdk11-dind-image
2+
on:
3+
workflow_dispatch:
4+
5+
6+
run-name: build-publish-sample-python-image
7+
jobs:
8+
build-publish-jdk11-dind-image:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Log in to Docker Hub
16+
uses: docker/#-action@v3
17+
with:
18+
username: ${{ secrets.DOCKERHUB_USERNAME }}
19+
password: ${{ secrets.DOCKERHUB_ACCESS_TOKEN }}
20+
21+
- name: Set up QEMU
22+
uses: docker/setup-qemu-action@v3
23+
24+
- name: Set up Docker Buildx
25+
uses: docker/setup-buildx-action@v3
26+
27+
- name: Build and docker image with tag
28+
uses: docker/build-push-action@v6
29+
with:
30+
file: Dockerfile
31+
push: true
32+
tags: |
33+
${{ secrets.DOCKERHUB_USERNAME }}/sample-python-image:latest

0 commit comments

Comments
 (0)