Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -122,14 +122,14 @@ RUN bundle install --local
ARG BUILD_TIMESTAMP
ARG BUILD_URL
ARG DOCKER_TAG
ARG GIT_BRANCH
ARG GIT_COMMIT
ARG GIT_URL
ARG GIT_REF_NAME
ARG GIT_SHA
ARG GIT_REPOSITORY_URL

# build arguments aren't persisted in the image, but ENV values are
ENV BUILD_TIMESTAMP="${BUILD_TIMESTAMP}"
ENV BUILD_URL="${BUILD_URL}"
ENV DOCKER_TAG="${DOCKER_TAG}"
ENV GIT_BRANCH="${GIT_BRANCH}"
ENV GIT_COMMIT="${GIT_COMMIT}"
ENV GIT_URL="${GIT_URL}"
ENV GIT_REF_NAME="${GIT_REF_NAME}"
ENV GIT_SHA="${GIT_SHA}"
ENV GIT_REPOSITORY_URL="${GIT_REPOSITORY_URL}"
2 changes: 1 addition & 1 deletion config/settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Settings:
upload_host: "upload.lib.berkeley.edu"
upload_user: "ssullivan"
last_alma_purge: "2023-06-30"
application_version: "1.6.0"
application_version: "1.6.1"

# TODO - flesh this out
# http://docopt.org/
Expand Down
2 changes: 1 addition & 1 deletion lib/alma/xml_writer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def ensure_open!

def prolog_and_opening_tag
tag = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
tag += "<!-- GIT_COMMIT:#{ENV['GIT_COMMIT']} -->\n"
tag += "<!-- GIT_SHA:#{ENV['GIT_SHA']} -->\n"
tag += "<!-- DOCKER_TAG:#{ENV['DOCKER_TAG']} -->\n"
tag += "<!-- VERSION: #{ENV['VERSION']} -->\n"
tag += "<!-- CHANGE_LOG_COUNT: #{change_log_count} -->\n"
Expand Down
2 changes: 1 addition & 1 deletion spec/data/sis/expected_xml_3.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- GIT_COMMIT:LOCAL_TESTING -->
<!-- GIT_SHA:LOCAL_TESTING -->
<!-- DOCKER_TAG:DEV -->
<!-- VERSION: VERSIONNUMBER -->
<!-- CHANGE_LOG_COUNT: -->
Expand Down
2 changes: 1 addition & 1 deletion spec/data/ucpath/expected_xml_1.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- GIT_COMMIT:LOCAL_TESTING -->
<!-- GIT_SHA:LOCAL_TESTING -->
<!-- DOCKER_TAG:DEV -->
<!-- VERSION: 1.5.4 -->
<users>
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
RSpec.configure do |config|
# Mock ENVs for testing
config.before(:each) do
ENV['GIT_COMMIT'] = 'LOCAL_TESTING'
ENV['GIT_SHA'] = 'LOCAL_TESTING'
ENV['DOCKER_TAG'] = 'DEV'
end

Expand Down