Skip to content

Update README.md

Update README.md #126

Workflow file for this run

# Create a new release when a tag is pushed, create a docker image and push it to docker hub
name: Publish Scraper
on:
push:
tags:
- 'v*'
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_CREATION_TOKEN }}
with:
tag_name: scraper-${{ github.ref }}
release_name: Scraper ${{ github.ref }}
draft: false
prerelease: false
- 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
uses: docker/build-push-action@v4
with:
context: ./
file: ./scraper/Dockerfile
push: true
tags: |
${{ secrets.DOCKERHUB_USERNAME }}/statusphere-scraper:${{ github.ref_name }}
${{ secrets.DOCKERHUB_USERNAME }}/statusphere-scraper:latest