Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cao7113 committed Jun 29, 2024
1 parent 115ce74 commit fab822d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/fly-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
run: |
pwd
ls -al
export GIT_COMMIT_INFO='$(git log -1 --format="%H %ct")'
echo GIT_COMMIT_INFO=$GIT_COMMIT_INFO
export GIT_COMMIT_INFO="$(git log -1 --format='%H %ct')"
echo GIT_COMMIT_INFO="$GIT_COMMIT_INFO"
export GIT_COMMIT_INFO1=$(git log -1 --format="%H %ct")
echo GIT_COMMIT_INFO1=$GIT_COMMIT_INFO1
echo GIT_COMMIT_INFO1="$GIT_COMMIT_INFO1"
- uses: superfly/flyctl-actions/setup-flyctl@master

- run: flyctl deploy --remote-only --env GIT_COMMIT_INFO="$GIT_COMMIT_INFO"
- run: flyctl deploy --remote-only --env GIT_COMMIT_INFO="$GIT_COMMIT_INFO" --env GIT_COMMIT_INFO1="$GIT_COMMIT_INFO1"
env:
# ref Github Settings -> Secrets -> Actions -> Repository secrets
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ ARG DEBIAN_VERSION=bullseye-20240612-slim
ARG BUILDER_IMAGE="hexpm/elixir:${ELIXIR_VERSION}-erlang-${OTP_VERSION}-debian-${DEBIAN_VERSION}"
ARG RUNNER_IMAGE="debian:${DEBIAN_VERSION}"
ENV GIT_COMMIT_INFO=""
ENV GIT_COMMIT_INFO1=""

FROM ${BUILDER_IMAGE} as builder

RUN echo GIT_COMMIT_INFO="$GIT_COMMIT_INFO"
RUN echo GIT_COMMIT_INFO1="$GIT_COMMIT_INFO1"
# install build dependencies
RUN apt-get update -y && apt-get install -y build-essential git \
&& apt-get clean && rm -f /var/lib/apt/lists/*_*
Expand Down

0 comments on commit fab822d

Please sign in to comment.