Skip to content

Commit

Permalink
push to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeOneTwo committed Sep 23, 2020
1 parent c6d0bcc commit 78057c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,11 @@ jobs:
uses: docker/setup-buildx-action@v1

-
name: Login to GitLab
name: Login to Dockerhub
uses: docker/login-action@v1
with:
registry: docker.pkg.github.com
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
# -
# name: docekr version
# run: docker --version
Expand All @@ -32,4 +31,4 @@ jobs:
push: true
tags: codeonetwo/oss-github-benchmark:latest
secrets: |
GITHUBTOKEN=${{ secrets.G_API_TOKEN }}
BUILD_KEY=${{ secrets.G_API_TOKEN }}
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ COPY requirements*.txt .
RUN pip install -r requirements.txt
COPY github_repos.json .
COPY OSS_github_benchmark.py .
RUN --mount=type=secret,id=GITHUBTOKEN GITHUBTOKEN=$(cat /run/secrets/GITHUBTOKEN) python ./OSS_github_benchmark.py
RUN --mount=type=secret,id=BUILD_KEY GITHUBTOKEN=$(cat /run/secrets/BUILD_KEY) python ./OSS_github_benchmark.py

FROM node:lts as frontend
WORKDIR /app
Expand Down

0 comments on commit 78057c2

Please sign in to comment.