Skip to content

Commit

Permalink
Make the published binaries executable
Browse files Browse the repository at this point in the history
  • Loading branch information
stepchowfun committed Jul 13, 2021
1 parent 156e950 commit 5a61203
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 10 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,10 +154,26 @@ jobs:
artifacts/x86_64-pc-windows-msvc/docuum.exe \
artifacts/docuum-x86_64-pc-windows-msvc.exe
# Build and push the Docker images.
docker build --tag "stephanmisc/docuum:$VERSION" --tag stephanmisc/docuum:latest .
# Make the x86_64-unknown-linux-musl artifact executable again before building the Docker
# image with it below. See https://github.com/actions/upload-artifact/issues/38.
chmod a+x artifacts/docuum-x86_64-unknown-linux-musl
# Build the Docker image.
docker build --tag stephanmisc/docuum --tag "stephanmisc/docuum:$VERSION" .
# Run the Docker image to validate it.
docker run \
--init \
--rm \
--tty \
--name docuum \
--volume /var/run/docker.sock:/var/run/docker.sock \
--volume docuum:/root \
stephanmisc/docuum --help
# Push the Docker image.
docker push stephanmisc/docuum
docker push "stephanmisc/docuum:$VERSION"
docker push stephanmisc/docuum:latest
# Create the release.
hub release create \
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.18.1] - 2021-07-12

### Fixed
- Fixed an issue with the Docker image which was caused by incorrect file permissions.

## [0.18.0] - 2021-07-12

### Added
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "docuum"
version = "0.18.0"
version = "0.18.1"
authors = ["Stephan Boyer <stephan@stephanboyer.com>"]
edition = "2018"
description = "LRU eviction of Docker images."
Expand Down
8 changes: 3 additions & 5 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
-o "$SOURCE" -LSf || fail 'There was an error downloading the binary.'

# Make it executable.
chmod a+rx "$SOURCE" || fail 'There was an error setting the permissions for the binary.'
chmod a+x "$SOURCE" || fail 'There was an error setting the permissions for the binary.'

# Install it at the requested destination.
# shellcheck disable=SC2024
Expand All @@ -65,8 +65,6 @@
# Remove the temporary directory.
rm -rf "$TEMPDIR"

# Let the user know it worked.
echo "$(
"$DESTINATION" --version || fail 'There was an error executing the binary.'
) is now installed."
# Let the user know if the installation was successful.
"$DESTINATION" --version || fail 'There was an error installing the binary.'
)

0 comments on commit 5a61203

Please sign in to comment.