Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

DockerHub Workflow #6

Merged
merged 2 commits into from
Mar 9, 2024
Merged
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
19 changes: 16 additions & 3 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,25 @@ jobs:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to Docker Hub Container Registry
uses: docker/#-action@v3
with:
registry: docker.io
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
- name: Build server runtime with compiled binaries
run: >
podman build -t ghcr.io/${{ github.repository }}/domain-server-builder:latest -f ./Dockerfile.build .

podman push ghcr.io/${{ github.repository }}/domain-server-builder:latest

podman build -t ghcr.io/${{ github.repository }}/domain-server:latest -f ./Dockerfile.runtime .

podman push ghcr.io/${{ github.repository }}/domain-server:latest
- name: Tag and push to Docker Hub
run: >
podman tag ghcr.io/${{ github.repository }}/domain-server:latest docker.io/${{ secrets.DOCKERHUB_USERNAME }}/domain-server:latest
podman push docker.io/${{ secrets.DOCKERHUB_USERNAME }}/domain-server:latest

- name: Clean up
run: >
podman system prune