Update flaskr-ci.yaml
This commit is contained in:
parent
d586f7c557
commit
6b98b3df07
1 changed files with 4 additions and 3 deletions
7
.github/workflows/flaskr-ci.yaml
vendored
7
.github/workflows/flaskr-ci.yaml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue