Init Python test
All checks were successful
Build and Push AI Image / build-and-push (push) Successful in 43s
All checks were successful
Build and Push AI Image / build-and-push (push) Successful in 43s
This commit is contained in:
32
.gitea/workflows/main.yml
Normal file
32
.gitea/workflows/main.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
name: Build and Push AI Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Docker smoke test
|
||||
run: docker ps -a
|
||||
|
||||
- name: Docker login
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" \
|
||||
| docker login git.petyi.eu \
|
||||
-u "${{ secrets.REGISTRY_USER }}" \
|
||||
--password-stdin
|
||||
|
||||
- name: Docker build
|
||||
run: |
|
||||
docker build -t git.petyi.eu/szakdolgozat/ai:latest .
|
||||
|
||||
- name: Docker push
|
||||
run: |
|
||||
docker push git.petyi.eu/szakdolgozat/ai:latest
|
||||
Reference in New Issue
Block a user