2024-10-17 13:23:20 -05:00
|
|
|
name: Build docker container
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: main
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
concurrency:
|
|
|
|
cancel-in-progress: false
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
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 }}
|
2024-10-17 13:34:22 -05:00
|
|
|
password: ${{ secrets.JONBIO_CI }}
|
2024-10-17 13:23:20 -05:00
|
|
|
-
|
|
|
|
name: Build and push
|
|
|
|
uses: docker/build-push-action@v6
|
|
|
|
with:
|
|
|
|
push: true
|
2024-10-17 13:52:00 -05:00
|
|
|
tags: git.jonb.io/jblu/jonbio:latest
|
2024-10-20 00:07:34 -05:00
|
|
|
-
|
|
|
|
name: Deploy App
|
|
|
|
uses: fjogeleit/http-request-action@v1
|
|
|
|
with:
|
2024-10-20 00:19:04 -05:00
|
|
|
url: 'http://192.168.4.11:7777/v1/update'
|
2024-10-20 00:07:34 -05:00
|
|
|
method: 'GET'
|
|
|
|
customHeaders: '{"Authorization: Bearer ${{ secrets.DEPLOYTOKEN }}"}'
|