Skip to content

Commit

Permalink
ci: add step to build and publish container image to ghcr
Browse files Browse the repository at this point in the history
  • Loading branch information
avivace committed Mar 24, 2024
1 parent 6b12161 commit 50a9caa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 22 additions & 0 deletions .github/workflows/build-container-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build Container image and publish it to GitHub Container Registry

on:
push:
branches:
- main

jobs:
publish-docker-image:
runs-on: ubuntu-latest
steps:
- 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: Build and push Docker image to the GHCR
run: |
docker build . --tag ghcr.io/gbdev/homebrewhub:latest
docker push ghcr.io/gbdev/homebrewhub:latest
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ pathspec==0.9.0
platformdirs==2.5.2
pre-commit==2.20.0
psycopg2==2.9.1
python-dateutil==2.9.0.post0
pytz==2021.1
PyYAML==6.0
sqlparse==0.4.2
toml==0.10.2
tomli==2.0.1
typing_extensions==4.3.0
virtualenv==20.16.2
python-dateutil==2.9.0.post0

0 comments on commit 50a9caa

Please sign in to comment.