Adding ci yaml
Some checks failed
Build and Publish Docker Image / Build and Publish Docker (push) Failing after 36s

This commit is contained in:
Brandon Watson 2024-06-07 10:12:30 -05:00
parent 0a96c8646a
commit f6e32ec435

34
.gitea/workflows/ci.yaml Normal file
View File

@ -0,0 +1,34 @@
name: Build and Publish Docker Image
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build_and_publish:
name: Build and Publish Docker
steps:
- uses: actions/checkout@v4
- name: Log in to Docker Registry
uses: docker/login-action@v3
with:
registry: gitea.watsonlabs.net/watsonb8/groupme
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: gitea.watsonlabs.net/watsonb8/groupme
- name: Build and push Docker image
id: push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}