Skip to content

Commit b5c73c8

Browse files
authored
Add Actions workflow
1 parent 206097a commit b5c73c8

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/main.yml

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

0 commit comments

Comments
 (0)