Skip to content

Commit

Permalink
👷 Build and Push Docker Image
Browse files Browse the repository at this point in the history
  • Loading branch information
0x46616c6b authored and t2d committed Dec 18, 2024
1 parent dcaf766 commit 2251474
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,3 +172,24 @@ jobs:
env:
DATABASE_DRIVER: pdo_pgsql
DATABASE_URL: pgsql://mail_test:[email protected]:${{ job.services.postgres.ports[5432] }}/mail?charset=UTF8

docker:
runs-on: ubuntu-22.04
name: Build & Push Docker Image
needs: test
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Docker Build
run: docker build -t docker.io/systemli/userli .

- name: Docker Push
if: github.ref == 'refs/heads/main'
run: docker push docker.io/systemli/userli
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
---
services:
userli:
image: docker.io/systemli/userli:latest
build:
context: .
dockerfile: Dockerfile
Expand Down

0 comments on commit 2251474

Please sign in to comment.