Skip to content

Commit 2840f12

Browse files
authored
added new action for dockerhub push
1 parent f95f6b1 commit 2840f12

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
release:
9+
types: [published]
10+
11+
permissions:
12+
packages: write
13+
contents: read
14+
15+
jobs:
16+
build-main:
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Set up QEMU
20+
uses: docker/setup-qemu-action@v3
21+
22+
- name: Set up Docker Buildx
23+
uses: docker/setup-buildx-action@v3
24+
25+
- name: Login to Docker Hub
26+
uses: docker/login-action@v3
27+
with:
28+
username: ${{ secrets.DOCKERHUB_USERNAME }}
29+
password: ${{ secrets.DOCKERHUB_TOKEN }}
30+
31+
- name: Build and Push Docker Image
32+
uses: docker/build-push-action@v5.1.0
33+
with:
34+
platforms: linux/amd64,linux/arm64
35+
push: true
36+
tags: makeplane/iframely:latest
37+
env:
38+
DOCKER_BUILDKIT: 1

0 commit comments

Comments
 (0)