Skip to content

Refresh pyaarlo library and make necessary changes to handle new version #2

Refresh pyaarlo library and make necessary changes to handle new version

Refresh pyaarlo library and make necessary changes to handle new version #2

Workflow file for this run

name: Build and Push docker image on Dockerhub
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build_push:
runs-on: ubuntu-latest
steps:
# 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 }}
# Checkout
- uses: actions/checkout@v4
# Build and push Docker image
- name: Build and push Docker image
uses: docker/build-push-action@v4
with:
context: . # Set the context to the current directory
tags: ${{ github.actor }}/${{ github.event.repository.name }}:${{ github.ref_name }}
push: true # Push the image to Docker Hub
# Log-out of Docker Hub
- name: Log out of Docker Hub
run: docker logout