Mike Smith
be272c4fd3
Some checks failed
Build and Deploy Docker Image / build (push) Has been cancelled
32 lines
743 B
YAML
32 lines
743 B
YAML
name: Build and Deploy Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Log in to Gitea Container Registry
|
|
uses: docker/login-action@v1
|
|
with:
|
|
password: ${{ secrets.GITEA_PASSWORD }}
|
|
username: ${{ secrets.GITEA_USERNAME }}
|
|
registry: ${{ secrets.GITEA_REGISTRY }}
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v2
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: ${{ secrets.GITEA_REGISTRY }}/smig/dotechbro-website:latest
|
|
|