Skip to content

Commit ebf9886

Browse files
committed
✨ feat: Add dockerfile build action
1 parent cc64a80 commit ebf9886

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/docker.yml

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

0 commit comments

Comments
 (0)