JobSpy/.github/workflows/docker-build.yml

34 lines
770 B
YAML
Raw Normal View History

2023-08-28 10:15:13 -07:00
name: Build and Push Docker Image
on:
push:
branches:
2023-08-28 11:45:32 -07:00
- patch_docker
2023-08-28 10:15:13 -07:00
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GitHub Docker Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.DOCKER_TOKEN }}
- name: Build and Push Image
uses: docker/build-push-action@v2
with:
context: .
file: ./Dockerfile
push: true
tags: ghcr.io/${{ github.repository_owner }}/jobspy:latest
2023-08-28 11:45:32 -07:00
platforms: linux/amd64,linux/arm64