Try fixing multi-line workflow commands

This commit is contained in:
Chris Vest 2020-11-20 15:28:02 +01:00
parent 72eb5d3bcb
commit 308b4df3b6

View File

@ -25,7 +25,7 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Prepare docker build cache - name: Prepare docker build cache
run: run: |
echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u $GITHUB_ACTOR --password-stdin echo ${{ secrets.GITHUB_TOKEN }} | docker login docker.pkg.github.com -u $GITHUB_ACTOR --password-stdin
docker pull docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache || true docker pull docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache || true
export DOCKER_BUILD_OPTS="--cache-from=docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache" export DOCKER_BUILD_OPTS="--cache-from=docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache"
@ -36,6 +36,6 @@ jobs:
# Cache build outputs # Cache build outputs
- name: Save docker build cache - name: Save docker build cache
run: run: |
docker tag netty-incubator-buffer:build docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache docker tag netty-incubator-buffer:build docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache
docker push docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache || true docker push docker.pkg.github.com/$GITHUB_REPOSITORY/build-cache || true