Update flaskr-ci.yaml

This commit is contained in:
Ted Spinks 2023-02-21 20:14:38 -05:00 committed by GitHub
parent d586f7c557
commit 6b98b3df07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,16 +37,17 @@ jobs:
# Required permission to push images with the built-in GITHUB_TOKEN # Required permission to push images with the built-in GITHUB_TOKEN
packages: write packages: write
runs-on: ubuntu-latest runs-on: ubuntu-latest
env:
CACHE: "${{ runner.temp }}/.buildx-cache"
NEW_CACHE: "${{ runner.temp }}/.buildx-cache-new"
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Job vars and prep - name: Job vars and prep
id: vars id: vars
# Use bash string manipulation to create vars
# Note runner.temp isn't available in job.env, so use it here
run: | run: |
echo "SHA_SHORT=${GITHUB_SHA:0:10}" >> ${GITHUB_ENV} echo "SHA_SHORT=${GITHUB_SHA:0:10}" >> ${GITHUB_ENV}
echo "REPO_LOWER_CASE=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV} echo "REPO_LOWER_CASE=${GITHUB_REPOSITORY,,}" >> ${GITHUB_ENV}
echo "CACHE=${{ runner.temp }}/.buildx-cache" >> ${GITHUB_ENV}
echo "NEW_CACHE=${{ runner.temp }}/.buildx-cache-new" >> ${GITHUB_ENV}
mkdir -p ${CACHE} mkdir -p ${CACHE}
- name: Setup Docker Buildx - name: Setup Docker Buildx
uses: docker/setup-buildx-action@v1 uses: docker/setup-buildx-action@v1