diff --git a/.github/workflows/build-docker.yml b/.github/workflows/build-docker.yml new file mode 100644 index 0000000..6fb0dc1 --- /dev/null +++ b/.github/workflows/build-docker.yml @@ -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 diff --git a/Test/test/1.0.0/docker/Dockerfile b/Test/test/1.0.0/docker/Dockerfile new file mode 100644 index 0000000..e65ecbe --- /dev/null +++ b/Test/test/1.0.0/docker/Dockerfile @@ -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