Skip to content

Workflow file for this run

name: Build and Push Docker Image
on:
push:
branches:
- Project-JA-3
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Login to Docker Registry
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUBUSERNAME }}
password: ${{ secrets.DOCKERHUBTOKEN }}
- name: Build and Push Docker Image
run: |
docker build -t ja .
docker tag ja:latest ${{ secrets.DOCKERHUBUSERNAME }}/project-ja:latest
docker push ${{ secrets.DOCKERHUBUSERNAME }}/project-ja:latest