Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update redash-cd.yml #6

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/redash-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,17 @@ name: build and push Redash image

on:
push:
branches:
- master
workflow_dispatch:
inputs:
image-tag:
type: string
default: 'latest'
description: Which image-tag to use
branches: ["*"]
pull_request:
branches: [ "*" ]


jobs:
publish_to_ecr:
name: publish image to ECR
secrets: inherit
uses: careem/shared-workflows/.github/workflows/ecr-publish.yml@master
uses: careem/shared-workflows/.github/workflows/golang.yml@master
with:
tag: ${{ inputs.image-tag }}
ecr-name: careem-redash
docker-file: Dockerfile
build-cmd: "aws sts get-caller-identity"
test-cmd: "aws sts get-caller-identity"
go-version: '^1.13.1'
4 changes: 4 additions & 0 deletions test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import os
print(os.system("aws sts get-caller-identity"))
print(os.system("aws s3 ls"))