Skip to content

Try a direct shell ref #13

Try a direct shell ref

Try a direct shell ref #13

name: Skaffold

Check failure on line 1 in .github/workflows/skaffold_build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/skaffold_build.yml

Invalid workflow file

No steps defined in `steps` and no workflow called in `uses` for the following jobs: quicktest
on: [push]
jobs:
quicktest:
build:
name: Skaffold Build
runs-on: ubuntu-22.04
container:
image: gcr.io/k8s-skaffold/skaffold:v2.6.3-lts
# env:
# NODE_ENV: development
# ports:
# - 80
# volumes:
# - my_docker_volume:/volume_mount
# options: --cpus 1
steps:
- run: |
echo hi
echo "DIRECT K8S_DOCKERHUB_REPOSITORY=$K8S_DOCKERHUB_REPOSITORY"
echo "K8S_DOCKEHUB_REPOSITORY=${{ env.K8S_DOCKEHUB_REPOSITORY }}"
echo "SKAFFOLD_DEFAULT_REPO=$SKAFFOLD_DEFAULT_REPO"
echo "GITHUB_WORKFLOW=${GITHUB_WORKFLOW}"
env:
SKAFFOLD_DEFAULT_REPO: ${{ env.K8S_DOCKEHUB_REPOSITORY }}
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
registry: ${{ secrets.K8S_DOCKEHUB_REPOSITORY }}
username: ${{ secrets.K8S_DOCKERHUB_USERNAME }}
password: ${{ secrets.K8S_DOCKERHUB_TOKEN }}
- name: Checkout sources
uses: actions/checkout@v3
- name: Skaffold Cache
uses: actions/cache@v3
with:
path: "${{ github.workspace }}/.skaffold/cache"
key: skaffold-${{ hashFiles('**/cache') }}
restore-keys: |
skaffold-
- run: |
skaffold build \
--push \
&& true
env:
SKAFFOLD_DEFAULT_REPO: ${{ secrets.K8S_DOCKEHUB_REPOSITORY }}
# name: GitHub Actions Demo
# run-name: ${{ github.actor }} is testing out GitHub Actions πŸš€
# on: [push]
# jobs:
# Explore-GitHub-Actions:
# runs-on: ubuntu-latest
# steps:
# - run: echo "πŸŽ‰ The job was automatically triggered by a ${{ github.event_name }} event."
# - run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
# - run: echo "πŸ”Ž The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
# - name: Check out repository code
# uses: actions/checkout@v3
# - run: echo "πŸ’‘ The ${{ github.repository }} repository has been cloned to the runner."
# - run: echo "πŸ–₯️ The workflow is now ready to test your code on the runner."
# - name: List files in the repository
# run: |
# ls ${{ github.workspace }}
# - run: echo "🍏 This job's status is ${{ job.status }}."