jonbio/.gitea/workflows/build.yml
Jonathan Branan e0e5159af9
All checks were successful
Build and Deploy docker container / build (push) Successful in 3m18s
Build and Deploy docker container / deploy (push) Successful in 49s
updated timeout
2024-10-20 10:45:27 -05:00

46 lines
1.0 KiB
YAML

name: Build and Deploy docker container
on:
push:
branches: main
workflow_dispatch:
concurrency:
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
steps:
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
-
name: Login to Docker Hub
uses: docker/login-action@v3
with:
registry: git.jonb.io
username: ${{ gitea.actor }}
password: ${{ secrets.JONBIO_CI }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: git.jonb.io/jblu/jonbio:latest
deploy:
runs-on: ubuntu-latest
env:
RUNNER_TOOL_CACHE: /toolcache
steps:
-
name: Deploy App
uses: fjogeleit/http-request-action@v1
with:
url: 'http://192.168.4.11:7777/v1/update'
method: 'GET'
bearerToken: ${{ secrets.DEPLOYTOKEN }}
timeout: 60000