Mike Smith
b4db2325aa
Some checks failed
Build and Deploy Docker Image / build (push) Failing after 7s
36 lines
810 B
YAML
36 lines
810 B
YAML
name: Build and Deploy Docker Image
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-docker
|
|
steps:
|
|
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: see if docker is in path
|
|
run: |
|
|
docker info
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v2
|
|
|
|
- name: Log in to Gitea Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
password: ${{ secrets.PASSWORD }}
|
|
username: ${{ secrets.USERNAME }}
|
|
registry: http://git.thecodedom.com:3000
|
|
|
|
- name: Build and push Docker image
|
|
uses: docker/build-push-action@v6
|
|
with:
|
|
context: .
|
|
push: true
|
|
tags: http://git.thecodedom.com:3000/smig/dotechbro-website:latest
|
|
|