Skip to content

Commit

Permalink
test:docker img push
Browse files Browse the repository at this point in the history
  • Loading branch information
redgreat committed Apr 17, 2024
1 parent dd2a193 commit 9f98e76
Showing 1 changed file with 8 additions and 19 deletions.
27 changes: 8 additions & 19 deletions .github/workflows/dockerpush.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,25 +20,6 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Free disk space
run: |
# Free disk space.
echo "::group::Before"
df -h /
echo "::endgroup::"
echo "::group::Removing unneeded softwares and files..."
for DIR in /usr/local/lib/android /usr/share/dotnet /opt/ghc
do
if [ -d "$DIR" ]; then
echo "Removing $DIR..."
sudo rm -r "$DIR"
fi
done
echo "::endgroup::"
echo "::group::After"
df -h /
echo "::endgroup::"
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
Expand All @@ -48,6 +29,14 @@ jobs:
otp-version: ${{ env.OTP-VERSION }}
rebar3-version: ${{ env.REBAR3-VERSION }}

- uses: actions/cache@v4.0.2
id: rebar3-cache
with:
path: |
~/.cache/rebar3
_build
key: ${{ runner.os }}-${{ env.OTP-VERSION }}-${{ env.REBAR3-VERSION }}-${{ hashFiles('rebar.lock') }}

- name: compile
run: |
rebar3 clean
Expand Down

0 comments on commit 9f98e76

Please sign in to comment.