8000 make: Update labels and docker workflow by titom73 · Pull Request #171 · aristanetworks/anta · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

make: Update labels and docker workflow #171

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

Merged
merged 3 commits into from
Apr 13, 2023
Merged

make: Update labels and docker workflow #171

merged 3 commits into from
Apr 13, 2023

Conversation

titom73
Copy link
Contributor
@titom73 titom73 commented Apr 12, 2023
  • Fix incorrect format to build image with Docker labels
  • Enable labels management in github action
  • Enable platform support in CI

labels added during the build:

$ docker-labels ghcr.io/arista-netdevops-community/network-test-automation:dev
{
  "org.opencontainers.artifact.description": "network-test-automation in a Python package and Python scripts to test Arista devices.",
  "org.opencontainers.image.authors": "Khelil Sator, Angélique Phillipps, Colin MacGiollaEáin, Matthieu Tache, Onur Gashi, Paul Lavelle, Guillaume Mulocher, Thomas Grimonet",
  "org.opencontainers.image.base.name": "python",
  "org.opencontainers.image.documentation": "https://www.anta.ninja",
  "org.opencontainers.image.licenses": "Apache-2.0",
  "org.opencontainers.image.revision": "",
  "org.opencontainers.image.source": "https://github.com/arista-netdevops-community/anta",
  "org.opencontainers.image.title": "anta",
  "org.opencontainers.image.url": "https://www.anta.ninja",
  "org.opencontainers.image.vendor": "The anta contributors.",
  "org.opencontainers.image.version": ""
}

Build multi-platform images:

docker buildx build \
    --platform linux/amd64,linux/arm64,linux/arm/v7 \
    -t ghcr.io/arista-netdevops-community/network-test-automation:dev \
    -f Dockerfile .

@titom73 titom73 requested a review from gmuloc April 12, 2023 14:55
@titom73 titom73 marked this pull request as ready for review April 12, 2023 15:31
@titom73 titom73 merged commit d41ab6f into aristanetworks:master Apr 13, 2023
@titom73 titom73 deleted the fix/docker-labels branch April 28, 2023 12:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0