Skip to content

Commit 965ca10

Browse files
committed
New GH workflow that should build a multi-platform image and push it to Docker Hub
1 parent f7835c9 commit 965ca10

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

.github/workflows/image.yml

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

hooks/post_push

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)