Use main ci for building docker images #331
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
# set-common-values: | |
# runs-on: ubuntu-latest | |
# # Map a step output to a job output | |
# outputs: | |
# BUILD_COMMAND: ${{ steps.set_command.outputs.command }} | |
# steps: | |
# # Option 2: Using JSON-style escaping | |
# - id: set_command | |
# run: echo "command=echo \"\${{ secrets.CLUSTER_KEY }}\" | base64 -d > cluster.key" >> "$GITHUB_OUTPUT" | |
build: | |
name: Build and Push Docker Image | |
# needs: set-common-values | |
uses: uptick/actions/.github/workflows/ci.yaml@main | |
secrets: | |
SECRET_ENV: "${{ secrets.CLUSTER_KEY }}" | |
#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: test | |
docker-tag-latest: false | |
docker-image-platforms: linux/amd64 | |
docker-repository: "305686791668.dkr.ecr.ap-southeast-2.amazonaws.com/gitops" | |
command: "echo $SECRET_ENV | base64 -d > cluster.key" |