Skip to content

cicd update5

cicd update5 #8

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
IMAGE_NAME: ${{ secrets.IMAGE_NAME }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Debug environment variables
run: |
echo "DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}"
echo "IMAGE_NAME: ${{ secrets.IMAGE_NAME }}"
- name: Log in to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
- name: Build Docker image
run: make build
- name: Push Docker image
run: make push