Skip to content

Commit e81273e

Browse files
committed
Add docker-push action
1 parent 88cd0af commit e81273e

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/docker-push.yml

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

0 commit comments

Comments
 (0)