Skip to content

Commit

Permalink
add and build test docker
Browse files Browse the repository at this point in the history
  • Loading branch information
hvgazula committed Oct 24, 2023
1 parent 8b918a0 commit 3eb60c4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Build Docker Image

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: cd Test/test/1.0.0/docker/ && docker build -t hvgazula/test:tm-sim .

# Push the Docker image to Docker Hub (only if the PR is merged)
- name: Push Docker image
run: |
docker login -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }}
docker push hvgazula/test:tm-sim
4 changes: 4 additions & 0 deletions Test/test/1.0.0/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Basic nginx dockerfile starting with Ubuntu 20.04
FROM ubuntu:20.04
RUN apt-get -y update
RUN apt-get -y install nginx

0 comments on commit 3eb60c4

Please sign in to comment.