Skip to content

Commit

Permalink
Merge pull request #10 from stifskere/dev
Browse files Browse the repository at this point in the history
fix: build variables
  • Loading branch information
stifskere authored May 16, 2024
2 parents 8d207b8 + 2f8da1c commit 2f1ed2b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/publish-to-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args: "ApiGithubToken=${{ secrets.API_GITHUB_TOKEN }}"
build-args: |
ApiGithubToken=${{ secrets.API_GITHUB_TOKEN }}
ApiSpotifyAuth=${{ secrets.API_SPOTIFY_AUTH }}
ApiSpotifyRefresh=${{ secrets.API_SPOTIFY_REFRESH }}
pull-from-server:
name: Pull from remote
Expand Down
8 changes: 7 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ FROM node:alpine AS base

ARG ApiGithubToken
ENV ApiGithubToken=${ApiGithubToken}
ARG ApiSpotifyAuth
ENV ApiSpotifyAuth=${ApiSpotifyAuth}
ARG ApiSpotifyRefresh
ENV ApiSpotifyRefresh=${ApiSpotifyRefresh}

RUN mkdir -p /usr/src/app

WORKDIR /usr/src/app
COPY . /usr/src/app

RUN touch /usr/src/app/.env
RUN echo "API_GITHUB_TOKEN=\"$ApiGithubToken\"" | cat >> /usr/src/app/.env
RUN echo -e "API_GITHUB_TOKEN=\"$ApiGithubToken\" \
\nAPI_SPOTIFY_AUTH=\"$ApiSpotifyAuth\" \
\nAPI_SPOTIFY_REFRESH=\"$ApiSpotifyRefresh\"" | cat >> /usr/src/app/.env

RUN npm install

Expand Down
4 changes: 4 additions & 0 deletions src/components/spotify-status/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,8 @@
left: 92%;

font-size: 1.5em;

@media (orientation: portrait) {
left: 91%;
}
}

0 comments on commit 2f1ed2b

Please sign in to comment.