Browse Source

PR fixes

pull/11417/head
99 3 years ago
parent
commit
0402cc16bf
  1. 7
      .github/workflows/build.yml
  2. 4
      Dockerfile
  3. 3
      Makefile

7
.github/workflows/build.yml

@ -4,8 +4,8 @@ on:
push:
# Sequence of patterns matched against refs/heads
branches:
# Push events on crt-consul-migration branch
- release/1.11.x
# Provide the release branch
env:
PKG_NAME: consul
@ -22,8 +22,7 @@ jobs:
- name: get product version
id: get-product-version
run: |
build-support/scripts/version.sh -r
IFS="-"; OUTPUT=$(make -f Makefile version);
IFS="-"; OUTPUT=$(build-support/scripts/version.sh -r);
read -a V <<< "$OUTPUT"; unset IFS;
VERSION=${V[0]}

4
Dockerfile

@ -35,10 +35,6 @@ RUN mkdir -p /consul/data && \
mkdir -p /consul/config && \
chown -R consul:consul /consul
# set up nsswitch.conf for Go's "netgo" implementation which is used by Consul,
# otherwise DNS supercedes the container's hosts file, which we don't want.
#RUN test -e /etc/nsswitch.conf || echo 'hosts: files dns' > /etc/nsswitch.conf
# Expose the consul data directory as a volume since there's mutable state in there.
VOLUME /consul/data

3
Makefile

@ -1,3 +0,0 @@
version:
@build-support/scripts/version.sh -r
.PHONY: version
Loading…
Cancel
Save