doorman/.gitea/workflows/docker-image.yaml
Martin Dimitrov 04c9f9fe0b
All checks were successful
Build and push image for doorman / docker (push) Successful in 1m2s
Build and push image for doorman / deploy-portainer (push) Successful in 26s
update stack webhook
2024-04-02 21:52:03 -07: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/42b3ae11-45bb-4021-b274-bedcb1250892