mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Bumps [aws-actions/amazon-ecr-login](https://github.com/aws-actions/amazon-ecr-login) from 1.5.3 to 1.6.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/aws-actions/amazon-ecr-login/releases">aws-actions/amazon-ecr-login's releases</a>.</em></p> <blockquote> <h2>v1.6.0</h2> <p>See the <a href="https://github.com/aws-actions/amazon-ecr-login/blob/HEAD/CHANGELOG.md">changelog</a> for details about the changes included in this release.</p> </blockquote> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/aws-actions/amazon-ecr-login/blob/main/CHANGELOG.md">aws-actions/amazon-ecr-login's changelog</a>.</em></p> <blockquote> <h1>Changelog</h1> <p>All notable changes to this project will be documented in this file. See <a href="https://github.com/conventional-changelog/standard-version">standard-version</a> for commit guidelines.</p> <h2><a href="https://github.com/aws-actions/amazon-ecr-login/compare/v1.5.3...v1.6.0">1.6.0</a> (2023-03-29)</h2> <h3>Features</h3> <ul> <li>add support for HTTP(s) proxy (<a href="454a99d5de">454a99d</a>)</li> </ul> <h3><a href="https://github.com/aws-actions/amazon-ecr-login/compare/v1.5.2...v1.5.3">1.5.3</a> (2022-10-29)</h3> <h3><a href="https://github.com/aws-actions/amazon-ecr-login/compare/v1.5.1...v1.5.2">1.5.2</a> (2022-10-18)</h3> <h3><a href="https://github.com/aws-actions/amazon-ecr-login/compare/v1.5.0...v1.5.1">1.5.1</a> (2022-08-04)</h3> <h3>Bug Fixes</h3> <ul> <li>reverted change that masked Docker credentials (<a href="7d073b66cc">7d073b6</a>)</li> </ul> <h2><a href="https://github.com/aws-actions/amazon-ecr-login/compare/v1.4.0...v1.5.0">1.5.0</a> (2022-06-27)</h2> <h3>Features</h3> <ul> <li>added ECR Public Registry support (<a href="b4f084e928">b4f084e</a>)</li> </ul> <h2><a href="https://github.com/aws-actions/amazon-ecr-login/compare/v1.3.3...v1.4.0">1.4.0</a> (2022-05-20)</h2> <h3>Features</h3> <ul> <li>output docker credentials after login (<a href="57206dc28c">57206dc</a>)</li> <li>support for username and password outputs (<a href="d121236bfd">d121236</a>)</li> </ul> <h3>Bug Fixes</h3> <ul> <li>add-mask to login outputs (<a href="45a78e2dab">45a78e2</a>)</li> </ul> <h3><a href="https://github.com/aws-actions/amazon-ecr-login/compare/v1.3.2...v1.3.3">1.3.3</a> (2021-02-15)</h3> <h3><a href="https://github.com/aws-actions/amazon-ecr-login/compare/v1.3.1...v1.3.2">1.3.2</a> (2021-02-01)</h3> <h3><a href="https://github.com/aws-actions/amazon-ecr-login/compare/v1.3.0...v1.3.1">1.3.1</a> (2020-11-24)</h3> <h2><a href="https://github.com/aws-actions/amazon-ecr-login/compare/v1.2.2...v1.3.0">1.3.0</a> (2020-10-29)</h2> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="2f9f10ea3f"><code>2f9f10e</code></a> chore(release): 1.6.0</li> <li><a href="7724c7e157"><code>7724c7e</code></a> Merge pull request <a href="https://redirect.github.com/aws-actions/amazon-ecr-login/issues/430">#430</a> from aws-actions/http-proxy</li> <li><a href="454a99d5de"><code>454a99d</code></a> feat: add support for HTTP(s) proxy</li> <li><a href="62f4f872db"><code>62f4f87</code></a> chore: Bump eslint from 8.36.0 to 8.37.0 (<a href="https://redirect.github.com/aws-actions/amazon-ecr-login/issues/429">#429</a>)</li> <li><a href="5cf60ad52c"><code>5cf60ad</code></a> chore: Bump aws-sdk from 2.1340.0 to 2.1345.0 (<a href="https://redirect.github.com/aws-actions/amazon-ecr-login/issues/428">#428</a>)</li> <li><a href="7179228b86"><code>7179228</code></a> chore: Bump aws-sdk from 2.1335.0 to 2.1340.0 (<a href="https://redirect.github.com/aws-actions/amazon-ecr-login/issues/426">#426</a>)</li> <li><a href="4ccd3fe855"><code>4ccd3fe</code></a> chore: Bump eslint from 8.35.0 to 8.36.0 (<a href="https://redirect.github.com/aws-actions/amazon-ecr-login/issues/424">#424</a>)</li> <li><a href="7ba8fdb4b8"><code>7ba8fdb</code></a> chore: Bump aws-sdk from 2.1330.0 to 2.1335.0 (<a href="https://redirect.github.com/aws-actions/amazon-ecr-login/issues/423">#423</a>)</li> <li><a href="069994d041"><code>069994d</code></a> Merge pull request <a href="https://redirect.github.com/aws-actions/amazon-ecr-login/issues/422">#422</a> from taichunmin/main</li> <li><a href="4f0431daa8"><code>4f0431d</code></a> update configure-aws-credentials from v1 to v2</li> <li>Additional commits viewable in <a href="261a7de32b...2f9f10ea3f">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
59 lines
2 KiB
YAML
59 lines
2 KiB
YAML
name: Build docker image and publish to ECR
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
enroll_secret:
|
|
description: 'Enroll Secret'
|
|
required: true
|
|
url:
|
|
description: 'Fleet server URL'
|
|
required: true
|
|
host_count:
|
|
description: 'Amount of hosts to emulate'
|
|
required: true
|
|
default: 20
|
|
tag:
|
|
description: 'docker image tag'
|
|
required: true
|
|
default: latest
|
|
|
|
# This allows a subsequently queued workflow run to interrupt previous runs
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id}}
|
|
cancel-in-progress: true
|
|
|
|
defaults:
|
|
run:
|
|
# fail-fast using bash -eo pipefail. See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
|
|
shell: bash
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build-docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Code
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2
|
|
|
|
- name: Configure AWS credentials
|
|
uses: aws-actions/configure-aws-credentials@05b148adc31e091bafbaf404f745055d4d3bc9d2 # v1
|
|
with:
|
|
aws-access-key-id: ${{ secrets.LOADTEST_AWS_ACCESS_KEY_ID }}
|
|
aws-secret-access-key: ${{ secrets.LOADTEST_AWS_SECRET_ACCESS_KEY }}
|
|
aws-region: us-east-2
|
|
|
|
- name: Login to Amazon ECR
|
|
id: login-ecr
|
|
uses: aws-actions/amazon-ecr-login@2f9f10ea3fa2eed41ac443fee8bfbd059af2d0a4 # v1
|
|
|
|
- name: Build, tag, and push image to Amazon ECR
|
|
env:
|
|
ECR_REGISTRY: ${{ steps.login-ecr.outputs.registry }}
|
|
ECR_REPOSITORY: osquery-perf
|
|
IMAGE_TAG: ${{ github.event.inputs.tag }}
|
|
run: |
|
|
docker build -t $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG --build-arg ENROLL_SECRET=${{ github.event.inputs.enroll_secret }} --build-arg HOST_COUNT=${{ github.event.inputs.host_count }} --build-arg SERVER_URL=${{ github.event.inputs.url }} -f Dockerfile.osquery-perf .
|
|
docker push $ECR_REGISTRY/$ECR_REPOSITORY:$IMAGE_TAG
|