Skip to content

Use main ci for building docker images #317

Use main ci for building docker images

Use main ci for building docker images #317

Workflow file for this run

name: Test
on:
push:
branches:
- develop
pull_request: ~
permissions:
actions: read # Read the metrics
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance / AWS
jobs:
ci:
uses: uptick/actions/.github/workflows/ci.yaml@main
secrets: inherit
with:
praise-on-fix: false
python-version: 3.12
mise: true
mise-install: true
command: |
mise run install
mise run ci
build:
name: Build and Push Docker Image
uses: uptick/actions/.github/workflows/ci.yaml@bee2a2c3e3472d68a035e5bbd2dd73c76993909a
secrets: inherit
#https://github.com/uptick/actions/blob/main/.github/workflows/ci.yaml
with:
aws-iam-role-arn: "arn:aws:iam::305686791668:role/default-github-actions-ci-role"
docker-enabled: true
docker-context: "."
docker-prefix: gitops-test
docker-tag-latest: false
docker-image-platforms: linux/amd64
docker-repository: "305686791668.dkr.ecr.ap-southeast-2.amazonaws.com/gitops"
command: |

Check failure on line 40 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Test

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 40, Col: 16): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.CLUSTER_KEY
echo "${{secrets.CLUSTER_KEY}}" | base64 -d > cluster.key
chmod 600 cluster.key
# Add this to ensure the key file is deleted after build
trap "rm -f cluster.key" EXIT
echo "Build Gitops docker image"