initial flow
Some checks failed
Build and Push container / build_concierge_backend (push) Failing after 12s
Some checks failed
Build and Push container / build_concierge_backend (push) Failing after 12s
This commit is contained in:
parent
df2249f3ba
commit
379218fc91
2 changed files with 49 additions and 0 deletions
48
.github/workflows/build.yaml
vendored
Normal file
48
.github/workflows/build.yaml
vendored
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
name: Build and Push container
|
||||||
|
run-name: Build and Push container
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
create:
|
||||||
|
push:
|
||||||
|
env:
|
||||||
|
VCS_REF: ${{ github.sha }}
|
||||||
|
VERSION: 0.0.1
|
||||||
|
IMAGE: git.kvant.cloud/phoenix/docker_tpl
|
||||||
|
jobs:
|
||||||
|
build_concierge_backend:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Set current time
|
||||||
|
uses: gerred/actions/current-time@master
|
||||||
|
id: current_time
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
|
- name: Login to gitea registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
registry: git.kvant.cloud
|
||||||
|
username: ${{ vars.PHOENIX_PACKAGE_WRITER_USERNAME }}
|
||||||
|
password: ${{ secrets.PHOENIX_PACKAGE_WRITER_TOKEN }}
|
||||||
|
|
||||||
|
- name: Build and push to gitea registry
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
push: true
|
||||||
|
context: ./kvant_AI_chatbot
|
||||||
|
build-args: |
|
||||||
|
BUILD_DATE=${{ steps.current_time.outputs.time }}
|
||||||
|
image: ${{ env.IMAGE }}
|
||||||
|
cache-from: |
|
||||||
|
type=registry,ref=${{ env.IMAGE }}:${{ github.ref_name }}
|
||||||
|
type=registry,ref=${{ env.IMAGE }}:latest
|
||||||
|
cache-to: type=inline
|
||||||
|
tags: |
|
||||||
|
${{ env.IMAGE }}:${{ github.ref_name }}
|
||||||
|
${{ env.IMAGE }}:latest
|
1
Dockerfile
Normal file
1
Dockerfile
Normal file
|
@ -0,0 +1 @@
|
||||||
|
FROM alpine
|
Loading…
Add table
Add a link
Reference in a new issue