Skip to content

Commit e0e2cb1

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

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/docker-push.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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: Checkout
12+
uses: actions/checkout@v4
13+
- name: Login to Docker Hub
14+
uses: docker/login-action@v3
15+
with:
16+
username: ${{ vars.DOCKERHUB_USERNAME }}
17+
password: ${{ secrets.DOCKERHUB_TOKEN }}
18+
- name: Set up QEMU
19+
uses: docker/setup-qemu-action@v3
20+
- name: Set up Docker Buildx
21+
uses: docker/setup-buildx-action@v3
22+
- name: Build and push
23+
uses: docker/build-push-action@v6
24+
with:
25+
context: .
26+
platforms: linux/amd64,linux/arm64
27+
push: true
28+
tags: ajeetdsouza/clidle:latest

0 commit comments

Comments
 (0)