feat: Remove AWS key and use ECR passwords for docker login [Ubuntu 2… #58
This file contains hidden or 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: Blackbox | |
| on: | |
| push: | |
| branches: | |
| - "2404" | |
| paths-ignore: | |
| - ".github/workflows/ecr/**" | |
| - ".github/workflows/ecr.yml" | |
| - "Makefile.workflow" | |
| workflow_dispatch: | |
| jobs: | |
| main: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_ACCESS_SECRET }} | |
| aws-region: us-east-1 | |
| - name: Login to Amazon ECR public | |
| id: login-ecr-public | |
| uses: aws-actions/amazon-ecr-login@v2 | |
| with: | |
| registry-type: public | |
| - name: Login to Amazon ECR private | |
| id: login-ecr | |
| uses: aws-actions/amazon-ecr-login@v2 | |
| with: | |
| registries: "134148934511" | |
| - name: Build Blackbox | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox | |
| - name: Build Blackbox "ansible" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| ansible | |
| - name: Build Blackbox "ansible-aws" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| ansible-aws | |
| - name: Build Blackbox "aws" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| aws | |
| # - name: Build Blackbox "chef" module | |
| # run: | | |
| # make \ | |
| # --file=Makefile.workflow \ | |
| # github:build:blackbox:module \ | |
| # chef | |
| - name: Build Blackbox "docker" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| docker | |
| - name: Build Blackbox "git" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| git | |
| - name: Build Blackbox "kubernetes" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| kubernetes | |
| - name: Build Blackbox "linux" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| linux | |
| - name: Build Blackbox "powershell" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| powershell | |
| - name: Build Blackbox "puppet" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| puppet | |
| - name: Build Blackbox "shell" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| shell | |
| - name: Build Blackbox "terraform" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| terraform | |
| - name: Build Blackbox "terraform-aws" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:build:blackbox:module \ | |
| terraform-aws | |
| - name: Push Blackbox | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox | |
| - name: Push Blackbox "ansible" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| ansible | |
| - name: Push Blackbox "ansible-aws" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| ansible-aws | |
| - name: Push Blackbox "aws" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| aws | |
| # - name: Push Blackbox "chef" module | |
| # run: | | |
| # make \ | |
| # --file=Makefile.workflow \ | |
| # github:push:blackbox:module \ | |
| # chef | |
| - name: Push Blackbox "docker" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| docker | |
| - name: Push Blackbox "git" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| git | |
| - name: Push Blackbox "kubernetes" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| kubernetes | |
| - name: Push Blackbox "linux" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| linux | |
| - name: Push Blackbox "powershell" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| powershell | |
| - name: Push Blackbox "puppet" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| puppet | |
| - name: Push Blackbox "shell" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| shell | |
| - name: Push Blackbox "terraform" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| terraform | |
| - name: Push Blackbox "terraform-aws" module | |
| run: | | |
| make \ | |
| --file=Makefile.workflow \ | |
| github:push:blackbox:module \ | |
| terraform-aws |