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.0 to 1.5.3. <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.5.3</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> <h2>v1.5.2</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> <h2>v1.5.1</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> <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> <h3>Features</h3> <ul> <li>optional skipping of docker registries logout in post step (<a href="https://github-redirect.dependabot.com/aws-actions/amazon-ecr-login/issues/78">#78</a>) (<a href="dd3fdeeb95">dd3fdee</a>)</li> </ul> <h3><a href="https://github.com/aws-actions/amazon-ecr-login/compare/v1.2.1...v1.2.2">1.2.2</a> (2020-10-05)</h3> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="261a7de32b"><code>261a7de</code></a> chore(release): 1.5.3</li> <li><a href="3e4df454b5"><code>3e4df45</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/aws-actions/amazon-ecr-login/issues/330">#330</a> from aws-actions/docs</li> <li><a href="c77259b767"><code>c77259b</code></a> chore: Update dist</li> <li><a href="383620b24d"><code>383620b</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/aws-actions/amazon-ecr-login/issues/352">#352</a> from aws-actions/dependabot/npm_and_yarn/actions/core...</li> <li><a href="8ccaf47755"><code>8ccaf47</code></a> chore: Bump <code>@actions/core</code> from 1.9.1 to 1.10.0</li> <li><a href="eb9a709a70"><code>eb9a709</code></a> chore(release): 1.5.2</li> <li><a href="ba4f9ee500"><code>ba4f9ee</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/aws-actions/amazon-ecr-login/issues/355">#355</a> from aws-actions/dependabot/npm_and_yarn/eslint-8.25.0</li> <li><a href="a1ac76b296"><code>a1ac76b</code></a> chore: Update dist</li> <li><a href="c21dbea0d3"><code>c21dbea</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/aws-actions/amazon-ecr-login/issues/356">#356</a> from aws-actions/dependabot/npm_and_yarn/aws-sdk-2.12...</li> <li><a href="e70c985d14"><code>e70c985</code></a> Merge pull request <a href="https://github-redirect.dependabot.com/aws-actions/amazon-ecr-login/issues/354">#354</a> from gotoeveryone/chore/update-runtime-to-node16</li> <li>Additional commits viewable in <a href="b874a33292...261a7de32b">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@261a7de32bda11ba01f4d75c4ed6caf3739e54be # 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
|