Compare commits
10 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f8d928eaa4 | |||
| 5d7baa9b34 | |||
| e26eab87e5 | |||
| b59fe0d067 | |||
| 761b42f9f6 | |||
| 01a8b9fcdc | |||
| 37c3d5e861 | |||
| a08c956bb4 | |||
| bc7f63aba9 | |||
| cfa5158f96 |
@@ -81,58 +81,25 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# build-amd64:
|
|
||||||
# runs-on: ubuntu-latest
|
|
||||||
# outputs:
|
|
||||||
# digest: ${{ steps.build.outputs.digest }}
|
|
||||||
# steps:
|
|
||||||
# - name: Check out code
|
|
||||||
# uses: actions/checkout@v6
|
|
||||||
|
|
||||||
# - name: Download artifact
|
build-amd64:
|
||||||
# if: ${{ inputs.artifact-name != '' }}
|
runs-on: ubuntu-latest
|
||||||
# uses: actions/download-artifact@v7
|
|
||||||
# with:
|
|
||||||
# name: ${{ inputs.artifact-name }}
|
|
||||||
# path: ${{ inputs.artifact-path }}
|
|
||||||
|
|
||||||
# - name: Docker build
|
|
||||||
# id: build
|
|
||||||
# uses: ./build-and-push
|
|
||||||
# with:
|
|
||||||
# oci-registry: ${{ inputs.oci-registry }}
|
|
||||||
# oci-registry-username: ${{ secrets.OCI_REGISTRY_USERNAME }}
|
|
||||||
# oci-registry-password: ${{ secrets.OCI_REGISTRY_PASSWORD }}
|
|
||||||
# repository: ${{ inputs.repository }}
|
|
||||||
# image: ${{ inputs.image }}
|
|
||||||
# tag: ${{ inputs.tag }}
|
|
||||||
# platform: linux/amd64
|
|
||||||
# context: ${{ inputs.context }}
|
|
||||||
# dockerfile: ${{ inputs.dockerfile }}
|
|
||||||
# build-args: ${{ inputs.build-args }}
|
|
||||||
# target: ${{ inputs.target }}
|
|
||||||
# secrets: ${{ inputs.secrets }}
|
|
||||||
# secret-envs: ${{ inputs.secret-envs }}
|
|
||||||
# push-by-digest: true
|
|
||||||
|
|
||||||
build-arm64:
|
|
||||||
runs-on: ubuntu-24.04-arm
|
|
||||||
outputs:
|
outputs:
|
||||||
digest: ${{ steps.build.outputs.digest }}
|
digest: ${{ steps.build.outputs.digest }}
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- name: Check out code
|
||||||
uses: actions/checkout@v6
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
||||||
|
|
||||||
- name: Download artifact
|
- name: Download artifact
|
||||||
if: ${{ inputs.artifact-name != '' }}
|
if: ${{ inputs.artifact-name != '' }}
|
||||||
uses: actions/download-artifact@v7
|
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||||
with:
|
with:
|
||||||
name: ${{ inputs.artifact-name }}
|
name: ${{ inputs.artifact-name }}
|
||||||
path: ${{ inputs.artifact-path }}
|
path: ${{ inputs.artifact-path }}
|
||||||
|
|
||||||
- name: Docker build
|
- name: Docker build
|
||||||
id: build
|
id: build
|
||||||
uses: ./build-and-push
|
uses: https://gitea.ldpt.fr/actions/docker/build-and-push@main
|
||||||
with:
|
with:
|
||||||
oci-registry: ${{ inputs.oci-registry }}
|
oci-registry: ${{ inputs.oci-registry }}
|
||||||
oci-registry-username: ${{ secrets.OCI_REGISTRY_USERNAME }}
|
oci-registry-username: ${{ secrets.OCI_REGISTRY_USERNAME }}
|
||||||
@@ -140,7 +107,7 @@ jobs:
|
|||||||
repository: ${{ inputs.repository }}
|
repository: ${{ inputs.repository }}
|
||||||
image: ${{ inputs.image }}
|
image: ${{ inputs.image }}
|
||||||
tag: ${{ inputs.tag }}
|
tag: ${{ inputs.tag }}
|
||||||
platform: linux/arm64
|
platform: linux/amd64
|
||||||
context: ${{ inputs.context }}
|
context: ${{ inputs.context }}
|
||||||
dockerfile: ${{ inputs.dockerfile }}
|
dockerfile: ${{ inputs.dockerfile }}
|
||||||
build-args: ${{ inputs.build-args }}
|
build-args: ${{ inputs.build-args }}
|
||||||
|
|||||||
@@ -13,4 +13,4 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
uses: https://gitea.ldpt.fr/actions/semantic-release/.github/workflows/semantic-release.yml@v1.5
|
uses: https://gitea.ldpt.fr/actions/semantic-release/.github/workflows/semantic-release.yml@v2.0.0
|
||||||
@@ -109,19 +109,19 @@ runs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "fully-qualified-image-name=$IMAGE_NAME" >> "$GITHUB_OUTPUT"
|
echo "fully-qualified-image-name=$IMAGE_NAME" >> "$GITHUB_OUTPUT"
|
||||||
- uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
|
- uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
|
||||||
with:
|
with:
|
||||||
registry: ${{ inputs.oci-registry }}
|
registry: ${{ inputs.oci-registry }}
|
||||||
username: ${{ inputs.oci-registry-username }}
|
username: ${{ inputs.oci-registry-username }}
|
||||||
password: ${{ inputs.oci-registry-password }}
|
password: ${{ inputs.oci-registry-password }}
|
||||||
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
||||||
id: setup-buildx
|
id: setup-buildx
|
||||||
with:
|
with:
|
||||||
version: v0.30.1
|
version: v0.30.1
|
||||||
driver-opts: |
|
driver-opts: |
|
||||||
image=moby/buildkit:v0.26.3
|
image=moby/buildkit:v0.26.3
|
||||||
- id: build
|
- id: build
|
||||||
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
|
uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 # v7.0.0
|
||||||
with:
|
with:
|
||||||
context: ${{ inputs.context }}
|
context: ${{ inputs.context }}
|
||||||
file: ${{ inputs.dockerfile }}
|
file: ${{ inputs.dockerfile }}
|
||||||
|
|||||||
@@ -61,12 +61,12 @@ runs:
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
echo "fully-qualified-image-name=$IMAGE_NAME" >> "$GITHUB_OUTPUT"
|
echo "fully-qualified-image-name=$IMAGE_NAME" >> "$GITHUB_OUTPUT"
|
||||||
- uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
|
- uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 # v4.0.0
|
||||||
with:
|
with:
|
||||||
registry: ${{ inputs.oci-registry }}
|
registry: ${{ inputs.oci-registry }}
|
||||||
username: ${{ inputs.oci-registry-username }}
|
username: ${{ inputs.oci-registry-username }}
|
||||||
password: ${{ inputs.oci-registry-password }}
|
password: ${{ inputs.oci-registry-password }}
|
||||||
- uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
|
- uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd # v4.0.0
|
||||||
id: setup-buildx
|
id: setup-buildx
|
||||||
with:
|
with:
|
||||||
version: v0.30.1
|
version: v0.30.1
|
||||||
|
|||||||
@@ -8,6 +8,5 @@ module.exports = {
|
|||||||
preset: "conventionalcommits"
|
preset: "conventionalcommits"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"@semantic-release/release-notes-generator"
|
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user