Skip to content

Commit

Permalink
Log in to github container registry
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshLoecker committed Aug 31, 2022
1 parent 846a9fe commit 8c35235
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/dockerhub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,13 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v3

- name: Log in to Container Registry
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# Get tag/release information for docker tags
- name: Docker Metadata
id: metadata
Expand Down Expand Up @@ -59,12 +66,12 @@ jobs:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}



- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.metadata.outputs.tags }}
labels: ${{ steps.metadata.outputs.labels }}
secrets: |
GIT_AUTH_TOKEN=${{ secrets.GITHUB_TOKEN }}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ RUN conda config --quiet --add channels conda-forge \
&& mamba clean --quiet --all --force-pkgs-dirs --yes \
&& R -e 'devtools::install_github("babessell1/zFPKM", quiet=TRUE)' \
# Install jupyter extensions
&& jupyter labextension install @jupyter-widgets/jupyterlab-manager \
&& jupyter labextension install escher \
&& jupyter labextension -y install @jupyter-widgets/jupyterlab-manager \
&& jupyter labextension -y install escher \
&& jupyter trust "${JUPYTER_NOTEBOOK}" \
&& rm -f "${ENVIRONMENT_FILE}" "${HOME}/pip_install.txt" "${HOME}/mamba_install.txt"

Expand Down

0 comments on commit 8c35235

Please sign in to comment.