doorman/.gitea/workflows/docker-image.yaml
Martin Dimitrov 3510f1e031
All checks were successful
Build and push image for doorman / docker (push) Successful in 18s
Build and push image for doorman / deploy-portainer (push) Successful in 25s
use local address
2024-02-27 20:41:59 -08:00

25 lines
832 B
YAML

name: Build and push image for doorman
on:
push:
branches: [main]
jobs:
docker:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
name: Check out code
- name: Build Docker image
run: docker build . -t gitea.chromart.dedyn.io/martin/doorman:v1 -t gitea.chromart.dedyn.io/martin/doorman:latest
- name: Login and Push Docker image
run: echo -n '${{ secrets.PASSWORD }}' | docker login gitea.chromart.dedyn.io --username ${{ secrets.USERNAME }} --password-stdin && docker image push --all-tags gitea.chromart.dedyn.io/martin/doorman
deploy-portainer:
needs: docker
runs-on: ubuntu-22.04
steps:
- name: Call Portainer stack webhook
run: curl --request POST http://192.168.1.150:9000/api/stacks/webhooks/db20216d-a40d-45a7-8e93-257d3efdac34