groupme/.gitea/workflows/ci.yaml
watsonb8 f6e32ec435
Some checks failed
Build and Publish Docker Image / Build and Publish Docker (push) Failing after 36s
Adding ci yaml
2024-06-07 10:14:09 -05:00

34 lines
928 B
YAML

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 }}