Skip to content

Commit 731feac

Browse files
committed
add CI workflow configuration for Docker builds
1 parent 9cdfd9a commit 731feac

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
# Publish semver tags as releases.
7+
tags: [ 'v*.*.*' ]
8+
pull_request:
9+
branches: [ "main" ]
10+
11+
env:
12+
REGISTRY: docker.io
13+
DOCKER_USERNAME: argentinaluiz
14+
IMAGE_NAME: argentinaluiz/docker-prod-test
15+
16+
jobs:
17+
ci:
18+
19+
runs-on: ubuntu-latest
20+
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Log into registry ${{ env.REGISTRY }}
29+
uses: docker/login-action@v3
30+
with:
31+
registry: ${{ env.REGISTRY }}
32+
username: ${{ env.DOCKER_USERNAME }}
33+
password: ${{ secrets.DOCKER_TOKEN }}

0 commit comments

Comments
 (0)