name: Update devcontainer image on: schedule: - cron: '0 8 * * 1' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: env: HELM_VERSION: v3.11.1 jobs: build-and-push-devcontainer-image: runs-on: ubuntu-20.04 permissions: contents: read id-token: write packages: write env: COSIGN_EXPERIMENTAL: 1 steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 - name: Install cosign uses: sigstore/cosign-installer@e1523de7571e31dbe865fd2e80c5c7c23ae71eb4 # v3.4.0 with: cosign-release: v2.2.3 - name: Install regctl uses: regclient/actions/regctl-installer@b6614f5f56245066b533343a85f4109bdc38c8cc # main - name: Log in to GHCR uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - name: Build / Push images run: | set -e cd .devcontainer/ docker build -t ghcr.io/spiffe/helm-charts-hardened-devcontainer:latest . docker push ghcr.io/spiffe/helm-charts-hardened-devcontainer:latest