Some checks failed
Build and Push Docker Image / build-and-push (push) Failing after 44s
24 lines
654 B
YAML
24 lines
654 B
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main # Change this if your default branch is different
|
|
|
|
jobs:
|
|
build-and-push:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Log in to Gitea Container Registry
|
|
run: echo "${{ secrets.PAT }}" | docker login git.asherfalcon.com --username ${{ secrets.USERNAME }} --password-stdin
|
|
|
|
- name: Build Docker image
|
|
run: docker build -t git.asherfalcon.com/asher/asherfalcon.com:latest .
|
|
|
|
- name: Push Docker image
|
|
run: docker push git.asherfalcon.com/asher/asherfalcon.com:latest
|