Added GitHub Docker image build action
This commit is contained in:
parent
6d8c0495d9
commit
ce8b208f65
1 changed files with 23 additions and 0 deletions
23
.github/workflows/build-image.yml
vendored
Normal file
23
.github/workflows/build-image.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
name: Build Docker image
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
jobs:
|
||||||
|
push_to_ghcr:
|
||||||
|
name: Push to ghcr.io
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Login to GitHub Container Registry
|
||||||
|
uses: docker/login-action@v1
|
||||||
|
with:
|
||||||
|
registry: ghcr.io
|
||||||
|
username: ${{ github.actor }}
|
||||||
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Publish
|
||||||
|
uses: docker/build-push-action@v2
|
||||||
|
with:
|
||||||
|
tags: ${{ format('ghcr.io/{0}/new_infofer_scraper:latest', github.actor) }}
|
||||||
|
push: true
|
Loading…
Add table
Reference in a new issue