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

14 add support for arm64 #15

Merged
merged 8 commits into from
Jul 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"