Skip to content

Commit 947d000

Browse files
authored
Add github docker building action
Added the Docker workflow with image building and pushing to Docker Hub.
1 parent 62ee1c9 commit 947d000

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Login to Docker Hub
12+
uses: docker/login-action@v4
13+
with:
14+
username: ${{ vars.DOCKERHUB_USERNAME }}
15+
password: ${{ secrets.DOCKERHUB_TOKEN }}
16+
- name: Set up Docker Buildx
17+
uses: docker/setup-buildx-action@v4
18+
- name: Build and push
19+
uses: docker/build-push-action@v7
20+
with:
21+
push: true
22+
tags: ${{ vars.DOCKERHUB_USERNAME }}/bugpack:latest

0 commit comments

Comments
 (0)