Skip to content

Commit 50a9caa

Browse files
committed
ci: add step to build and publish container image to ghcr
1 parent 6b12161 commit 50a9caa

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Build Container image and publish it to GitHub Container Registry
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
publish-docker-image:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Login to GitHub Container Registry
14+
uses: docker/login-action@v1
15+
with:
16+
registry: ghcr.io
17+
username: ${{ github.actor }}
18+
password: ${{ secrets.GITHUB_TOKEN }}
19+
- name: Build and push Docker image to the GHCR
20+
run: |
21+
docker build . --tag ghcr.io/gbdev/homebrewhub:latest
22+
docker push ghcr.io/gbdev/homebrewhub:latest

requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ pathspec==0.9.0
1717
platformdirs==2.5.2
1818
pre-commit==2.20.0
1919
psycopg2==2.9.1
20+
python-dateutil==2.9.0.post0
2021
pytz==2021.1
2122
PyYAML==6.0
2223
sqlparse==0.4.2
2324
toml==0.10.2
2425
tomli==2.0.1
2526
typing_extensions==4.3.0
2627
virtualenv==20.16.2
27-
python-dateutil==2.9.0.post0

0 commit comments

Comments
 (0)