Skip to content

Commit

Permalink
create new github action for automated deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
michivonah committed Oct 12, 2024
1 parent 7522a80 commit 06ba3ef
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 18 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/dockerhub-autopublishing.yml

This file was deleted.

25 changes: 25 additions & 0 deletions .github/workflows/image-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Build Docker Image
on:
push:
branches:
- main
jobs:
build:
name: push docker image to docker hub
runs-on: debian-latest
steps:
- uses: actions/checkout@v2
- name: login to docker hub
id: docker-hub
env:
username: ${{secrets.DOCKER_USERNAME}}
password: ${{secrets.DOCKER_TOKEN}}
run: |
docker login -u $username -p $password
- name: build the docker image
id: build-docker-image
run: |
docker build -t michivonah/ep-alerts:latest .
- name: push the docker image
id: push-docker-image
run: docker push michivonah/ep-alerts:latest

0 comments on commit 06ba3ef

Please sign in to comment.