Skip to content

Commit 32327ea

Browse files
authored
Create main.yml
testing gh actions
1 parent 5038eaa commit 32327ea

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Docker Image CI
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
-
17+
name: Checkout
18+
uses: actions/checkout@v2
19+
-
20+
name: Login to Docker Hub
21+
uses: docker/login-action@v1
22+
with:
23+
username: ${{ secrets.DOCKER_HUB_USERNAME }}
24+
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
25+
-
26+
name: Set up QEMU
27+
uses: docker/setup-qemu-action@v1
28+
-
29+
name: Set up Docker Buildx
30+
id: buildx
31+
uses: docker/setup-buildx-action@v1
32+
with:
33+
install: true
34+
-
35+
name: Available platforms
36+
run: echo ${{ steps.buildx.outputs.platforms }}
37+
-
38+
name: Build and push
39+
uses: docker/build-push-action@v2
40+
with:
41+
context: .
42+
platforms: linux/amd64,linux/arm64
43+
file: ./anemone-app/Dockerfile
44+
push: true
45+
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/anemone-app:latest

0 commit comments

Comments
 (0)