Skip to content

Commit

Permalink
Create docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
eculler authored Mar 28, 2024
1 parent 6e18218 commit ee8655a
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}

- name: Build and push image
id: docker_build
uses: docker/[email protected]
with:
context: ./
file: ./Dockerfile
push: true
tags: earthlab/first-map:latest

0 comments on commit ee8655a

Please sign in to comment.