Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 4s
27 lines
776 B
YAML
27 lines
776 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Clone repository manually
|
|
run: |
|
|
git clone https://git.asherfalcon.com/asher/asherfalcon.com.git /workspace/asherfalcon.com
|
|
cd /workspace/asherfalcon.com
|
|
git checkout main
|
|
|
|
- name: Log in to Gitea Container Registry
|
|
run: echo "${{ secrets.PAT }}" | docker login git.asherfalcon.com -u ${{ secrets.USERNAME }} --password-stdin
|
|
|
|
- name: Build Docker image
|
|
run: docker build -t git.asherfalcon.com/asher/asherfalcon.com:latest /workspace/asherfalcon.com
|
|
|
|
- name: Push Docker image
|
|
run: docker push git.asherfalcon.com/asher/asherfalcon.com:latest
|