Adicionar .forgejo/workflows/build-image.yaml
Some checks are pending
Build and Publish Docker Image / build (push) Waiting to run
Some checks are pending
Build and Publish Docker Image / build (push) Waiting to run
This commit is contained in:
parent
e924b9c5fc
commit
082e0a5405
1 changed files with 22 additions and 0 deletions
22
.forgejo/workflows/build-image.yaml
Normal file
22
.forgejo/workflows/build-image.yaml
Normal file
|
|
@ -0,0 +1,22 @@
|
||||||
|
name: Build and Publish Docker Image
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
# define um ambiente docker base
|
||||||
|
runs-on: docker
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Build Docker image
|
||||||
|
run: |
|
||||||
|
docker build -t monitor-relogio-ponto:latest .
|
||||||
|
|
||||||
|
- name: Save image as tar
|
||||||
|
run: |
|
||||||
|
docker save monitor-relogio-ponto:latest -o monitor-relogio-ponto.tar
|
||||||
Loading…
Reference in a new issue