From 21a65e310f3af3be8919d3d01023e86c4c17dd77 Mon Sep 17 00:00:00 2001 From: Nazarii Shcherbak <52297843+Nazarevsky@users.noreply.github.com> Date: Sun, 24 Mar 2024 06:58:41 +0200 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 20 ++++++++++++++++++++ 1 file changed, 20 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..8e40305 --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,20 @@ +name: Docker Image CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - name: Vendor mod file + run: go mod vendor + - name: Build the Docker image + run: docker build . --file Dockerfile --tag my-image-name:$(date +%s)