Martin Dimitrov 31a47adc05
All checks were successful
Build and push image for websocket http cache / docker (push) Successful in 8s
Build and push image for websocket http cache / deploy-gitainer (push) Successful in 17s
add gitainer deploy also ignore open event
2024-09-30 12:05:39 -07:00

27 lines
877 B
YAML

name: Build and push image for websocket http cache
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 buildx build . -t gitea.chromart.cc/martin/websocket-http-cache:v1 -t gitea.chromart.cc/martin/websocket-http-cache:latest
- name: Login to Docker
run: echo -n '${{ secrets.PASSWORD }}' | docker login gitea.chromart.cc --username ${{ secrets.USERNAME }} --password-stdin
- name: Push Docker image
run: docker image push --all-tags gitea.chromart.cc/martin/websocket-http-cache
deploy-gitainer:
needs: docker
runs-on: ubuntu-22.04
steps:
- name: Call Gitainer stack webhook
run: curl --request POST http://192.168.1.150:9080/api/stacks/websocket-http-cache?pretty