Skip to content

Update build-and-push.yml #12

Update build-and-push.yml

Update build-and-push.yml #12

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker
uses: docker/setup-buildx-action@v1
- name: Build Docker image
run: |
cd 2023-Samsung-Security-sllm-Proejct/Dockerfile.txt
docker build -t realcommang/my-jupyter-image:latest .
- name: Log in to Docker Hub
run: docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} -p ${{ secrets.DOCKER_HUB_PASSWORD }}
- name: Push Docker image
run: docker push realcommang/my-jupyter-image:latest