From ee8655abb34047d4e6ee5d84d069d7996b19e3dd Mon Sep 17 00:00:00 2001 From: Elsa Culler Date: Thu, 28 Mar 2024 16:12:29 -0600 Subject: [PATCH] Create docker-image.yml --- .github/workflows/docker-image.yml | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 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..56cecbd --- /dev/null +++ b/.github/workflows/docker-image.yml @@ -0,0 +1,31 @@ +name: Docker Image CI + +on: + push: + branches: [ "main" ] + +jobs: + + build: + + runs-on: ubuntu-latest + + steps: + - name: Check out repository + uses: actions/checkout@v3 + + - name: Login to DockerHub + uses: docker/login-action@v3.1.0 + with: + username: ${{ secrets.DOCKER_HUB_USERNAME }} + password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} + + - name: Build and push image + id: docker_build + uses: docker/build-push-action@v5.1.0 + with: + context: ./ + file: ./Dockerfile + push: true + tags: earthlab/first-map:latest +