This commit is contained in:
31
.gitea/workflows/build.yml
Normal file
31
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,31 @@
|
||||
name: build-and-push
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v2
|
||||
|
||||
- name: Login to registry
|
||||
uses: docker/login-action@v2
|
||||
with:
|
||||
registry: gitea.interno.com
|
||||
username: nucleo000
|
||||
password: 7bc7b2fcd283bd6a251bef3ede368b7f897c919d
|
||||
|
||||
- name: Build
|
||||
run: docker build -t gitea.interno.com/nucleo000/planilla:${{ github.sha }} -t gitea.interno.com/nucleo000/planilla:latest ./nucleo-bot
|
||||
|
||||
- name: Push
|
||||
run: |
|
||||
docker push gitea.interno.com/nucleo000/planilla:${{ github.sha }}
|
||||
docker push gitea.interno.com/nucleo000/planilla:latest
|
||||
|
||||
Reference in New Issue
Block a user