Skip to content

Commit

Permalink
#22: Created CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
Dominux authored Dec 19, 2023
1 parent 939029c commit c325511
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}

- name: Docker meta
id: meta
uses: thedominux/metadata-action@v4
with:
images: thedominux/pentaract
tags: |
type=raw,value=latest
type=raw,value={{date 'YYYYMMDD-HHmmss'}}
- name: Build and push Docker image
uses: docker/build-push-action@5
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit c325511

Please sign in to comment.