Skip to content

Commit cf65c3f

Browse files
authored
AP-496: update build variables across the board (#2)
* AP-496: update build variables across the board * version bump before release
1 parent f0d37fc commit cf65c3f

6 files changed

Lines changed: 11 additions & 11 deletions

File tree

Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,14 @@ RUN bundle install --local
122122
ARG BUILD_TIMESTAMP
123123
ARG BUILD_URL
124124
ARG DOCKER_TAG
125-
ARG GIT_BRANCH
126-
ARG GIT_COMMIT
127-
ARG GIT_URL
125+
ARG GIT_REF_NAME
126+
ARG GIT_SHA
127+
ARG GIT_REPOSITORY_URL
128128

129129
# build arguments aren't persisted in the image, but ENV values are
130130
ENV BUILD_TIMESTAMP="${BUILD_TIMESTAMP}"
131131
ENV BUILD_URL="${BUILD_URL}"
132132
ENV DOCKER_TAG="${DOCKER_TAG}"
133-
ENV GIT_BRANCH="${GIT_BRANCH}"
134-
ENV GIT_COMMIT="${GIT_COMMIT}"
135-
ENV GIT_URL="${GIT_URL}"
133+
ENV GIT_REF_NAME="${GIT_REF_NAME}"
134+
ENV GIT_SHA="${GIT_SHA}"
135+
ENV GIT_REPOSITORY_URL="${GIT_REPOSITORY_URL}"

config/settings.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Settings:
66
upload_host: "upload.lib.berkeley.edu"
77
upload_user: "ssullivan"
88
last_alma_purge: "2023-06-30"
9-
application_version: "1.6.0"
9+
application_version: "1.6.1"
1010

1111
# TODO - flesh this out
1212
# http://docopt.org/

lib/alma/xml_writer.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def ensure_open!
4242

4343
def prolog_and_opening_tag
4444
tag = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n"
45-
tag += "<!-- GIT_COMMIT:#{ENV['GIT_COMMIT']} -->\n"
45+
tag += "<!-- GIT_SHA:#{ENV['GIT_SHA']} -->\n"
4646
tag += "<!-- DOCKER_TAG:#{ENV['DOCKER_TAG']} -->\n"
4747
tag += "<!-- VERSION: #{ENV['VERSION']} -->\n"
4848
tag += "<!-- CHANGE_LOG_COUNT: #{change_log_count} -->\n"

spec/data/sis/expected_xml_3.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!-- GIT_COMMIT:LOCAL_TESTING -->
2+
<!-- GIT_SHA:LOCAL_TESTING -->
33
<!-- DOCKER_TAG:DEV -->
44
<!-- VERSION: VERSIONNUMBER -->
55
<!-- CHANGE_LOG_COUNT: -->

spec/data/ucpath/expected_xml_1.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8"?>
2-
<!-- GIT_COMMIT:LOCAL_TESTING -->
2+
<!-- GIT_SHA:LOCAL_TESTING -->
33
<!-- DOCKER_TAG:DEV -->
44
<!-- VERSION: 1.5.4 -->
55
<users>

spec/spec_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
RSpec.configure do |config|
3939
# Mock ENVs for testing
4040
config.before(:each) do
41-
ENV['GIT_COMMIT'] = 'LOCAL_TESTING'
41+
ENV['GIT_SHA'] = 'LOCAL_TESTING'
4242
ENV['DOCKER_TAG'] = 'DEV'
4343
end
4444

0 commit comments

Comments
 (0)