Skip to content

feat(ci-cd): add build and push to dockerhub stage #1

feat(ci-cd): add build and push to dockerhub stage

feat(ci-cd): add build and push to dockerhub stage #1

Workflow file for this run

name: Build and Push
on:
push:
branches:
- main
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.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
run: |
docker build -t akwanmaroso/hyuga:${{ github.sha }} .
docker push akwanmaroso/hyuga:${{ github.sha }}