Fix deprecated set-env in GitHub actions.
See https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
This commit is contained in:
parent
2ce6c8eac0
commit
08b93b386d
|
@ -12,7 +12,7 @@ jobs:
|
|||
- name: Checkout code
|
||||
uses: actions/checkout@master
|
||||
- name: Set FARMOS_VERSION environment variable
|
||||
run: echo ::set-env name=FARMOS_VERSION::${GITHUB_REF:10}
|
||||
run: echo "FARMOS_VERSION=${GITHUB_REF:10}" >> $GITHUB_ENV
|
||||
# This builds the Docker image using the specified FARMOS_VERSION,
|
||||
# but notably it does NOT override the default PROJECT_VERSION, so the
|
||||
# farmOS Composer project 2.x branch is always used.
|
||||
|
|
|
@ -12,7 +12,7 @@ jobs:
|
|||
- name: Checkout the repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Set FARMOS_VERSION environment variable
|
||||
run: echo ::set-env name=FARMOS_VERSION::${GITHUB_REF:11}
|
||||
run: echo "FARMOS_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
|
||||
- name: Build farmOS 2.x Docker image
|
||||
run: docker build --build-arg FARMOS_REPO=https://github.com/${GITHUB_REPOSITORY} --build-arg FARMOS_VERSION=${FARMOS_VERSION} -t farmos/farmos:2.x docker
|
||||
# This builds the dev Docker image using the specified FARMOS_VERSION,
|
||||
|
|
Loading…
Reference in New Issue