Skip to content

Commit

Permalink
Merge pull request #15 from texano00/14-add-support-for-arm64
Browse files Browse the repository at this point in the history
14 add support for arm64
  • Loading branch information
texano00 authored Jul 18, 2024
2 parents 73f7388 + 1c696f4 commit ea4c09a
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 9 deletions.
32 changes: 26 additions & 6 deletions .github/workflows/CI_CD_App.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
branches: ['main']
paths:
- 'app/**'
# - '.github/**'

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -55,20 +56,39 @@ jobs:
run: |
version=$(cat .version)
echo "version=${version}" >> $GITHUB_OUTPUT
- name: docker build and push
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to container registry
uses: docker/login-action@v3
with:
username: ${{ secrets.GHCR_USERNAME }}
password: ${{ secrets.GHCR_PASSWORD }}
registry: ${{ env.REGISTRY }}


- name: Check if version already exist
id: build_and_push
run: |
built_image="${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.metadata.outputs.version }}"
docker login ${{ env.REGISTRY }} -u ${{ secrets.GHCR_USERNAME }} -p ${{ secrets.GHCR_PASSWORD }}
if docker manifest inspect ${built_image} > /dev/null; then
echo "already exist -> do not push"
exit 1
else
echo "does not exist -> push"
docker build . -t ${built_image}
docker push ${built_image}
echo "does not exist -> going on"
fi
- name: Build and Push Image
uses: docker/build-push-action@v6
with:
context: app
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.metadata.outputs.version }}
platforms: linux/amd64,linux/arm64/v8,linux/arm/v6,linux/arm/v7
push: true


2 changes: 1 addition & 1 deletion app/.version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.2
0.5.1
4 changes: 2 additions & 2 deletions helm/urunner/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.5.3
version: 0.6.0
icon: https://raw.githubusercontent.com/texano00/urunner/main/asset/logo.png

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "0.4.2"
appVersion: "0.5.1"

0 comments on commit ea4c09a

Please sign in to comment.