Docker build and github action test

This commit is contained in:
ovosimpatico
2024-10-27 21:07:36 -03:00
parent cdf6e274ab
commit 33cb70e1ae
4 changed files with 80 additions and 0 deletions

31
.github/workflows/docker-publish.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Build and Publish Docker Image
on:
push:
# branches:
# - main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: ghcr.io/${{ github.repository }}:latest