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

adds workflow for publishing docker image #171

Closed
wants to merge 1 commit into from
Closed
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
27 changes: 27 additions & 0 deletions .github/workflows/publish-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish image to Docker Hub
on:
[workflow_dispatch]
# workflow_run:
# workflows: [build]
# types:
# - completed

jobs:
publish-image:
#if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Build and Push Docker Image
run: |
docker build -t ./docker/. ${{ secrets.DOCKER_USERNAME }}/sdt-v2:latest
docker push ${{ secrets.DOCKER_USERNAME }}/sdt-v2:latest
2 changes: 1 addition & 1 deletion sdt_dask/docker/Dockerfile → docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ WORKDIR /root
RUN mkdir sdt
WORKDIR /root/sdt

COPY ../../requirements.txt /root/sdt/.
COPY requirements.txt /root/sdt/.

RUN pip install -r requirements.txt
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
solar-data-tools==1.6.0
solar-data-tools
numpy==2.0.0
dask==2024.5.2
distributed==2024.5.2
Expand Down
Loading