33 lines
744 B
YAML
33 lines
744 B
YAML
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:3000
|
|
insecure: true
|
|
username: nucleo000
|
|
password: 7bc7b2fcd283bd6a251bef3ede368b7f897c919d
|
|
|
|
- name: Build & push
|
|
uses: docker/build-push-action@v4
|
|
with:
|
|
context: ./nucleo-bot
|
|
push: true
|
|
tags: |
|
|
gitea:3000/nucleo000/whatsapp_bot:latest
|
|
gitea:3000/nucleo000/whatsapp_bot:${{ github.sha }}
|