Skip to content

Commit

Permalink
Build and publish
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirrezaNasiri authored Sep 19, 2023
1 parent 1effd1a commit eae7258
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 4 deletions.
48 changes: 44 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 <nasiri.amirreza.96@gmail.com> and contributors
maintainer=Amirreza Nasiri <nasiri.amirreza.96@gmail.com>
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 }}
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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!

0 comments on commit eae7258

Please sign in to comment.