Skip to content

Commit

Permalink
test2
Browse files Browse the repository at this point in the history
  • Loading branch information
johndeniel committed Jun 9, 2024
1 parent 9bac0c6 commit d4d369d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
15 changes: 0 additions & 15 deletions .github/workflows/build-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ jobs:
steps:
- name: pulling git repo
uses: actions/checkout@v2

- name: Cache dependencies
uses: actions/cache@v3
with:
Expand All @@ -18,13 +17,11 @@ jobs:
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable

- name: Build and test code
run: |
cargo build --verbose
Expand All @@ -51,17 +48,5 @@ jobs:
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/spotify:build-v1.001
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache

- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}

- name: Deploy container
env:
SPOTIFY_CLIENT_ID: ${{ secrets.SPOTIFY_CLIENT_ID }}
SPOTIFY_CLIENT_SECRET: ${{ secrets.SPOTIFY_CLIENT_SECRET }}
SPOTIFY_PLAYLIST_ID: ${{ secrets.SPOTIFY_PLAYLIST_ID }}
run: |
docker run -e SPOTIFY_CLIENT_ID=${SPOTIFY_CLIENT_ID} \
-e SPOTIFY_CLIENT_SECRET=${SPOTIFY_CLIENT_SECRET} \
-e SPOTIFY_PLAYLIST_ID=${SPOTIFY_PLAYLIST_ID} \
-p 7860:7860 ${{ secrets.DOCKER_HUB_USERNAME }}/spotify:build-v1.001
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ FROM chef AS planner
COPY . .
# Generate info for caching dependencies
RUN cargo chef prepare --recipe-path recipe.json
RUN cat recipe.json # Debugging step to check the contents of recipe.json

FROM chef AS builder
COPY --from=planner /spotify/recipe.json recipe.json
Expand Down

0 comments on commit d4d369d

Please sign in to comment.