From 9a1d72daa1cf06731e923d470960c928a7b0edb3 Mon Sep 17 00:00:00 2001 From: stesiam <52320488+stesiam@users.noreply.github.com> Date: Tue, 23 Jan 2024 11:45:07 +0200 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/docker-image.yml diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml new file mode 100644 index 0000000..e441ddd --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,21 @@ +name: Docker Image CI + +on: + push: + branches: [ "main", "test"] + pull_request: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Build the Docker image + run: | + echo "${{ secrets.DOCKERPW }}" | docker login -u "stesiam" --password-stdin + docker build . --file Dockerfile --tag stesiam/glass-api:latest + docker push stesiam/glass-api:latest