Skip to content

some research (#25) #18

some research (#25)

some research (#25) #18

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build Docker image
run: docker build -t my-image .
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Tag Docker image
run: docker tag my-image ${{ secrets.DOCKER_USERNAME }}/my-image:latest
- name: Push Docker image
run: docker push ${{ secrets.DOCKER_USERNAME }}/my-image:latest