move checkout out of composite action #16
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: Run Shared Build and Push Workflow | |
on: | |
push: | |
branches: | |
- main | |
- master | |
paths: | |
- 'Dockerfile' | |
- '*.sh' | |
jobs: | |
build_and_push: | |
runs-on: ubuntu-latest | |
environment: foobar | |
permissions: | |
contents: read | |
packages: write # required if push is true | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: See which repo we just cloned | |
if: ${{ vars.pipeline_debug == 'true' }} | |
run: ls -lha | |
shell: bash | |
- uses: jabez007/aws-kubectl/.github/shared/docker@master | |
with: | |
push: true | |
tag: ${{ vars.AWS_REGION }}_${{ vars.EKS_CLUSTER }} | |
build-args: | | |
AWS_REGION=${{ vars.AWS_REGION }} | |
EKS_CLUSTER=${{ vars.EKS_CLUSTER }} | |
debug: ${{ vars.pipeline_debug }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |