Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 47 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

name: Build image

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

workflow_dispatch:


jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Login to Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: 3.7
- name: Install pipenv
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv --python python
pipenv lock --requirements > build-requirements.txt


- name: Push to GitHub Packages
uses: docker/build-push-action@v2
with:
context: .
file: build/Containerfile
push: true
tags: |
ghcr.io/${{ github.repository }}:build
ghcr.io/${{ github.repository }}:latest