Skip to content

Skaffold - release

Skaffold - release #4

Workflow file for this run

name: Skaffold - release
on:
push:
branches:
- main
paths:
- .github/workflows/release.yml
- "**/Dockerfile"
- "**/*.go"
- "**/*.gomod"
create:
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#create
tags:
- v*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Skaffold Build
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout sources
uses: actions/checkout@v4
- uses: dorny/paths-filter@v2
id: changes
with:
filters: |
cloudevents-server:
- 'cloudevents-server/**'
# https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
# https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Setup skaffold
run: |
curl -Lo skaffold https://storage.googleapis.com/skaffold/releases/v2.8.0/skaffold-linux-amd64 && \
sudo install skaffold /usr/local/bin/
- name: Cache layers
uses: actions/cache@v3
with:
path: "${{ github.workspace }}/.skaffold/cache"
key: skaffold-${{ hashFiles("${{ github.workspace }}/.skaffold/cache") }}

Check failure on line 64 in .github/workflows/release.yaml

View workflow run for this annotation

GitHub Actions / Skaffold - release

Invalid workflow file

The workflow is not valid. .github/workflows/release.yaml (Line: 64, Col: 16): Unexpected symbol: '"${{'. Located at position 11 within expression: hashFiles("${{ github.workspace
restore-keys: |
skaffold-
- name: Publish cloudevents-server image
if: steps.changes.outputs.cloudevents-server == 'true'
working-directory: cloudevents-server
run: |
skaffold build \
--profile local-docker \
--default-repo ghcr.io/pingcap-qe/ee-apps