Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoFoxCZ authored Mar 12, 2024
1 parent 994b31e commit c86edba
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Docker Build and Push

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout Code
uses: actions/checkout@v2

- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.HUB_USER }}
password: ${{ secrets.HUB_PASSWORD }}

- name: Build and Push Docker Image
run: |
docker build -t ${{ secrets.HUB_USER }}/hackatonapp:latest . -f HackatonApp/Dockerfile
docker push ${{ secrets.HUB_USER }}/hackatonapp:latest

0 comments on commit c86edba

Please sign in to comment.