Skip to content

need to put secret docker #2

need to put secret docker

need to put secret docker #2

Workflow file for this run

name: CI/CD for Hangman App
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the code from your repo
- name: Checkout code
uses: actions/checkout@v2
# Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# Log in to Docker Hub
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Build and push the Docker image
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: your-dockerhub-username/hangman-app:latest