initial flow
Some checks failed
Build and Push container / build_concierge_backend (push) Failing after 12s

This commit is contained in:
Angel Nunez Mencias 2024-10-31 21:42:50 -03:00
parent df2249f3ba
commit 379218fc91
Signed by: angel.nunez
SSH key fingerprint: SHA256:z1nFAg1v1AfbhEHrgBetByUJUwziv2R2f4VyN75opcg
2 changed files with 49 additions and 0 deletions

48
.github/workflows/build.yaml vendored Normal file
View 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
View file

@ -0,0 +1 @@
FROM alpine