Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameter to add additional docker tags #45

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jameslnewell
Copy link

@jameslnewell jameslnewell commented Aug 28, 2023

This PR adds a tags: <list> parameter to in order to enable tagging of images with additional docker tags.

This is useful if you want to be able to reference the image later in the pipeline e.g. from a docker-compose file

Example usage:

# pipeline.yml

steps:
  - command: echo wow
    plugins:
      - seek-oss/docker-ecr-cache#v2.0.0:
          ecr-name: <repository>
          tags:
            - build-${BUILDKITE_BUILD_NUMBER}
# docker-compose.yml

services:
  test:
    image: <registry>/<repository>:build-${BUILDKITE_BUILD_NUMBER}
    command: npm run test

@jameslnewell jameslnewell force-pushed the feat/specify-docker-tags branch 2 times, most recently from 9754ff4 to 3d8c0b6 Compare August 28, 2023 03:37
@jameslnewell jameslnewell marked this pull request as ready for review August 28, 2023 03:43
@jameslnewell jameslnewell marked this pull request as draft August 28, 2023 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant