Skip to content

Commit eecf656

Browse files
Merge pull request #3 from cod3rocket/add-ci
Adicionado action para build e publicação da imagem docker
2 parents 5c684c2 + f2de979 commit eecf656

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- dev
6+
tags:
7+
- 'v*'
8+
jobs:
9+
build:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v6
14+
15+
- name: Setup QEMU
16+
uses: docker/setup-qemu-action@v3
17+
18+
- name: Setup docker buildx
19+
uses: docker/setup-buildx-action@v3
20+
21+
- name: Login no GHCR
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ghcr.io
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Build e push multi-arch
29+
uses: docker/build-push-action@v6
30+
with:
31+
push: true
32+
platforms: linux/amd64,linux/arm64
33+
tags: ghcr.io/${{ github.repository }}:${{ github.ref_name }}

0 commit comments

Comments
 (0)