Skip to content

Revert "[Monochart] Feature: deployment.yaml volume mounts (#273)" #86

Revert "[Monochart] Feature: deployment.yaml volume mounts (#273)"

Revert "[Monochart] Feature: deployment.yaml volume mounts (#273)" #86

Workflow file for this run

name: Charts
on:
push:
branches:
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the pull request branch
- name: Checkout Code
uses: actions/checkout@v2
- name: Determine Chart Repo
id: helm_chart
run: |
if [[ ${GITHUB_REF} == 'refs/heads/master' ]]; then
echo "bucket_url=s3://cloudposse-charts/" >> $GITHUB_OUTPUT
echo "repo_url=https://charts.cloudposse.com" >> $GITHUB_OUTPUT
else
echo "bucket_url=s3://cloudposse-dev-charts/${GITHUB_REF}/" >> $GITHUB_OUTPUT
echo "repo_url=https://charts.dev.cloudposse.com/${GITHUB_REF}" >> $GITHUB_OUTPUT
fi
env:
GITHUB_REF: ${{ github.ref }}
- name: Build Chart Packages
uses: "docker://cloudposse/build-harness:1.10.0"
with:
args: "-C incubator all"
env:
HELM_CHART_REPO_URL: ${{ steps.helm_chart.outputs.repo_url }}
- name: Generate Index
uses: "docker://cloudposse/build-harness:1.10.0"
with:
args: "-C packages all"
env:
HELM_CHART_REPO_URL: ${{ steps.helm_chart.outputs.repo_url }}
- name: Publish Charts to Chart Repository
if: success() && github.repository == 'cloudposse/charts'
run: aws s3 sync --acl public-read packages/ ${{ steps.helm_chart.outputs.bucket_url }} --exclude '*' --include '*.tgz' --include '*.yaml'
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_EC2_METADATA_DISABLED: true
- name: Test
if: success() && github.repository == 'cloudposse/charts'
uses: "docker://cloudposse/build-harness:1.10.0"
with:
args: "-C test all"
env:
HELM_CHART_REPO_URL: ${{ steps.helm_chart.outputs.repo_url }}