Add .gitea/workflows/build.yml
Some checks failed
Build and Push Docker Image / build (push) Failing after 4m39s
Some checks failed
Build and Push Docker Image / build (push) Failing after 4m39s
This commit is contained in:
29
.gitea/workflows/build.yml
Normal file
29
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,29 @@
|
||||
name: Build and Push Docker Image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Login to Gitea Registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login \
|
||||
git.prestonjo.se \
|
||||
-u "${{ secrets.REGISTRY_USERNAME }}" \
|
||||
--password-stdin
|
||||
|
||||
- name: Build Image
|
||||
run: |
|
||||
docker build -t git.prestonjo.se/admin/featuretest:latest .
|
||||
|
||||
- name: Push Image
|
||||
run: |
|
||||
docker push git.prestonjo.se/admin/featuretest:latest
|
||||
Reference in New Issue
Block a user