Skip to content

Merge pull request #381 from leondavi/nn_tiles #229

Merge pull request #381 from leondavi/nn_tiles

Merge pull request #381 from leondavi/nn_tiles #229

Workflow file for this run

name: Docker Image CI
on:
push:
branches:
- master
workflow_dispatch: # Add this event for manual triggering
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and tag Docker image
run: |
docker build -t ${{ secrets.DOCKER_USERNAME }}/nerlnet:latest .
docker tag ${{ secrets.DOCKER_USERNAME }}/nerlnet:latest ${{ secrets.DOCKER_USERNAME }}/nerlnet:${{ github.sha }}
- name: Push Docker image to Docker Hub
run: |
docker push ${{ secrets.DOCKER_USERNAME }}/nerlnet:latest