Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
haithembelhaj authored Jan 25, 2024
1 parent 45ae64f commit f7055b7
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:

buildAndPush:

runs-on: ubuntu-latest
env:
IMAGE_TAG: konekto/kronos:$(date +%s)
steps:
- uses: actions/checkout@v3
- name: Login to docker hub
run: docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD
- name: Build the Docker image
run: docker build . -t $IMAGE_TAG -t konekto/kronos:latest
- name: Push the Docker image
run: docker push . -t $IMAGE_TAG -t konekto/kronos:latest

0 comments on commit f7055b7

Please sign in to comment.