From eae725890edf8fe2d4ba7b23704941157c57485a Mon Sep 17 00:00:00 2001 From: Amirreza Nasiri Date: Tue, 19 Sep 2023 21:01:11 +0330 Subject: [PATCH] Build and publish --- .github/workflows/build.yaml | 48 +++++++++++++++++++++++++++++++++--- README.md | 3 +++ 2 files changed, 47 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 54a07e5..29e09c6 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -50,7 +50,47 @@ jobs: matrix: version: ${{ fromJson(needs.prepare-versions.outputs.versions) }} steps: - - name: Run job for matrix element - run: | - echo "Running for version: ${{ matrix.version.version }}" - + - name: Docker metadata + id: meta + uses: docker/metadata-action@v4 + with: + images: | + evryn/version-forge + ghcr.io/evryn/version-forge + quay.io/evryn/version-forge + flavor: | + latest=false + tags: | + type=semver,pattern={{version}},value=${{ matrix.version.version }} + type=raw,value={{sha}} + labels: | + org.opencontainers.image.vendor=Evryn + org.opencontainers.image.authors=Amirreza Nasiri and contributors + maintainer=Amirreza Nasiri + org.label-schema.schema-version=1.0 + org.label-schema.vcs-url=https://github.com/${{ github.repository }}.git + org.label-schema.docker.cmd=docker run -d -p 8080:8080 version-forge + - name: Login to DockerHub + uses: docker/login-action@v2 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Login to Quay.io + uses: docker/login-action@v2 + with: + registry: quay.io + username: ${{ secrets.QUAY_USERNAME }} + password: ${{ secrets.QUAY_PASSWORD }} + - name: Build and push + uses: docker/build-push-action@v4 + with: + context: . + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }} diff --git a/README.md b/README.md index 7d9c459..2655731 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # Version Forge + +> It's under development. Not ready yet! + A playful Kubernetes demo showcasing deployment progress through the lens of a delightful morning meal. From an empty table to a full breakfast spread, experience the evolution of app versions in the most delicious way!