Skip to content

Commit 471ab0f

Browse files
committed
GitHub Action para construiir imagen de Docker
1 parent 8d84b69 commit 471ab0f

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Build Server Docker Image
2+
3+
on:
4+
workflow_dispatch
5+
6+
jobs:
7+
8+
docker-image-production:
9+
runs-on: ubuntu-latest
10+
environment: production
11+
if: github.ref == 'refs/heads/main'
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
16+
- name: Build Docker Image
17+
uses: VaultVulp/gp-docker-action@1.2.0
18+
with:
19+
github-token: ${{ secrets.GITHUB_TOKEN }}
20+
image-name: production
21+
image-tag: 1.0
22+
dockerfile: docker/Dockerfile
23+
build-context: .

0 commit comments

Comments
 (0)