jonbio/.gitea/workflows/build.yml
Jonathan Branan 16bbec99e2
Some checks failed
Build docker container / build (push) Failing after 3m55s
Changed header links and added auto deployment
2024-10-20 00:07:34 -05:00

38 lines
885 B
YAML

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 }}
password: ${{ secrets.JONBIO_CI }}
-
name: Build and push
uses: docker/build-push-action@v6
with:
push: true
tags: git.jonb.io/jblu/jonbio:latest
-
name: Deploy App
uses: fjogeleit/http-request-action@v1
with:
url: 'http://watchtowerr:8080/v1/update'
method: 'GET'
customHeaders: '{"Authorization: Bearer ${{ secrets.DEPLOYTOKEN }}"}'