Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Build image of github package #39

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
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
12 changes: 10 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: wh1isper
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: b-scheduler
password: ${{ secrets.PAT }}
- name: Build and push release
id: docker_build_release_matrix
uses: docker/build-push-action@v5
Expand All @@ -34,4 +40,6 @@ jobs:
cache-to: type=gha,mode=max
file: ./docker/Dockerfile
push: true
tags: wh1isper/brq:dev
tags: |
${{ vars.DOCKERHUB_USERNAME }}/brq:dev
ghcr.io/b-scheduler/brq:dev
16 changes: 13 additions & 3 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,14 @@ jobs:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: wh1isper
username: ${{ vars.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: b-scheduler
password: ${{ secrets.PAT }}
- name: Build and push image
id: docker_build_publish
uses: docker/build-push-action@v5
Expand All @@ -45,7 +51,9 @@ jobs:
cache-to: type=gha,mode=max
file: ./docker/Dockerfile
push: true
tags: wh1isper/brq:${{ github.ref_name }}
tags: |
${{ vars.DOCKERHUB_USERNAME }}/brq:${{ github.ref_name }}
ghcr.io/b-scheduler/brq:${{ github.ref_name }}
- name: Build and push image
id: docker_build_publish_matrix_latest
uses: docker/build-push-action@v5
Expand All @@ -56,4 +64,6 @@ jobs:
cache-to: type=gha,mode=max
file: ./docker/Dockerfile
push: true
tags: wh1isper/brq:latest
tags: |
${{ vars.DOCKERHUB_USERNAME }}/brq:latest
ghcr.io/b-scheduler/brq:latest
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@ FROM python:3.11.10-slim-bookworm
COPY --from=builder /source/dist/*.whl /tmp/

RUN pip install --no-cache-dir $(echo /tmp/*.whl)[browser]

LABEL org.opencontainers.image.source=https:/b-scheduler/bscheduler
Loading