Initial commit
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m5s
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 2m5s
This commit is contained in:
23
.gitea/workflows/build-push.yml
Normal file
23
.gitea/workflows/build-push.yml
Normal file
@@ -0,0 +1,23 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to private registry
|
||||
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login registry.ciomek.pl/bta-server:latest -u "${{ secrets.REGISTRY_USERNAME }}" --password-stdin
|
||||
|
||||
- name: Build Docker image
|
||||
run: docker build -t registry.ciomek.pl/bta-server:latest .
|
||||
|
||||
- name: Push Docker image
|
||||
run: docker push registry.ciomek.pl/bta-server:latest
|
||||
Reference in New Issue
Block a user