test automation
Some checks failed
Build and Deploy docker container / build (push) Failing after 47s

This commit is contained in:
2024-10-27 18:12:58 -05:00
parent e0e5159af9
commit ba234be5e8
3 changed files with 51 additions and 30 deletions

View File

@ -14,33 +14,55 @@ jobs:
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
-
uses: actions/setup-go@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
go-version: '1.20'
-
uses: actions/go-hashfiles@v0.0.1
id: get-hash
with:
patterns: |-
**/yarn.lock
**.[jt]sx
-
name: Echo hash
run: echo ${{ steps.get-hash.outputs.hash }}
# -
# name: Restore cache
# uses: actions/cache@v4
# with:
# path: .next/cache
# key: ${{ runner.os }}-nextjs-${{ steps.get-hash.outputs.hash('**/yarn.lock') }}-${{ steps.get-hash.outputs.hash('**/yarn.lock', '**.[jt]sx') }}
# restore-keys: |
# ${{ steps.get-hash.outputs.hash }}
# -
# 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
# 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