25 lines
491 B
YAML
25 lines
491 B
YAML
name: 'build-and-push'
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
services:
|
|
registry:
|
|
image: registry:2
|
|
ports:
|
|
- 32000:32000
|
|
steps:
|
|
- name: checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Build Docker image
|
|
run: docker build . --file Dockerfile --tag localhost:32000/scrapper:latest
|
|
|
|
- name: push image to registry
|
|
run: docker push localhost:32000/scrapper:latest
|