init comit
Some checks failed
Build and Push Docker Image to Gitea Registry / build-and-push (push) Failing after 3s
Some checks failed
Build and Push Docker Image to Gitea Registry / build-and-push (push) Failing after 3s
This commit is contained in:
27
.gitea/workflows/build-docker.yaml
Normal file
27
.gitea/workflows/build-docker.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
name: Build and Push Docker Image to Gitea Registry
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build-and-push:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
# Checkout the repository
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v3
|
||||
|
||||
# Log in to Gitea Registry using Personal Access Token
|
||||
- name: Log in to Gitea Registry
|
||||
run: echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.USERNAME }} --password-stdin
|
||||
|
||||
# Build Docker Image
|
||||
- name: Build Docker Image
|
||||
run: docker build -t ${{ secrets.REGISTRY_URL }}/${{ secrets.REPOSITORY }}/my-linktree:latest .
|
||||
|
||||
# Push Docker Image to Gitea Registry
|
||||
- name: Push Docker Image
|
||||
run: docker push ${{ secrets.REGISTRY_URL }}/${{ secrets.REPOSITORY }}/my-linktree:latest
|
||||
Reference in New Issue
Block a user