Skip to content

adding sbom and Attestations, adding tags with dates #6

adding sbom and Attestations, adding tags with dates

adding sbom and Attestations, adding tags with dates #6

Workflow file for this run

name: CI
on:
push:
permissions:
packages: write
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build Docker image
run: docker build -t knight/cloudflared-dns:dev .
- name: Install Goss
uses: e1himself/goss-installation-action@v1.2.1
with:
version: 'v0.4.9'
- name: Execute Goss tests
env:
GOSS_FILES_STRATEGY: cp
run: dgoss run knight/cloudflared-dns:dev
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Docker Login
uses: docker/login-action@v3.3.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Build and push latest
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: |
linux/amd64
linux/arm64
linux/arm/v6
linux/arm/v7
linux/ppc64le
linux/s390x
linux/386
linux/riscv64
push: true
sbom: true
provenance: mode=max
tags: |

Check failure on line 72 in .github/workflows/main.yaml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/main.yaml (Line: 72, Col: 17): Unrecognized named-value: 'date'. Located at position 1 within expression: date '+%Y%m%d'
knight/cloudflared-dns:latest
knight/cloudflared-dns:${{ date '+%Y%m%d' }}
ghcr.io/knight1/cloudflared:latest
ghcr.io/knight1/cloudflared:${{ date '+%Y%m%d' }}
cache-from: type=registry,ref=knight/cloudflared-dns:buildcache
cache-to: type=registry,ref=knight/cloudflared-dns:buildcache,mode=max