Skip to content

changed all time to 12 months due to api change #5

changed all time to 12 months due to api change

changed all time to 12 months due to api change #5

name: Build and Deploy the Image
on:
workflow_dispatch: # To have the ability to run the workflow manually
push:
branches: [main]
pull_request:
branches: [main]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Login to Docker Hub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build the Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
nairol/spotify-stats:${{ github.run_number }}
nairol/spotify-stats:latest