|
|
@ -22,22 +22,23 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
steps: |
|
|
|
steps: |
|
|
|
- name: Checkout repository |
|
|
|
- name: Checkout repository |
|
|
|
uses: actions/checkout@v4 |
|
|
|
uses: actions/checkout@v2 |
|
|
|
|
|
|
|
|
|
|
|
- name: Set up Python |
|
|
|
- name: Set up Python |
|
|
|
uses: actions/setup-python@v5 |
|
|
|
uses: actions/setup-python@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
python-version: '3.12' |
|
|
|
python-version: '3.8' |
|
|
|
|
|
|
|
|
|
|
|
- name: Set up QEMU |
|
|
|
- name: Install cosign |
|
|
|
uses: docker/setup-qemu-action@v3 |
|
|
|
if: github.event_name != 'pull_request' |
|
|
|
|
|
|
|
uses: sigstore/cosign-installer@main |
|
|
|
|
|
|
|
|
|
|
|
- name: Setup Docker buildx |
|
|
|
- name: Setup Docker buildx |
|
|
|
uses: docker/setup-buildx-action@v3 |
|
|
|
uses: docker/setup-buildx-action@v1 |
|
|
|
|
|
|
|
|
|
|
|
- name: Log into registry ${{ env.REGISTRY }} |
|
|
|
- name: Log into registry ${{ env.REGISTRY }} |
|
|
|
if: github.event_name != 'pull_request' |
|
|
|
if: github.event_name != 'pull_request' |
|
|
|
uses: docker/login-action@v3 |
|
|
|
uses: docker/login-action@v1 |
|
|
|
with: |
|
|
|
with: |
|
|
|
registry: ${{ env.REGISTRY }} |
|
|
|
registry: ${{ env.REGISTRY }} |
|
|
|
username: ${{ github.actor }} |
|
|
|
username: ${{ github.actor }} |
|
|
@ -70,7 +71,7 @@ jobs: |
|
|
|
|
|
|
|
|
|
|
|
- name: Build and push Docker image |
|
|
|
- name: Build and push Docker image |
|
|
|
id: build-and-push |
|
|
|
id: build-and-push |
|
|
|
uses: docker/build-push-action@v6 |
|
|
|
uses: docker/build-push-action@v2 |
|
|
|
with: |
|
|
|
with: |
|
|
|
context: . |
|
|
|
context: . |
|
|
|
build-args: | |
|
|
|
build-args: | |
|
|
@ -78,11 +79,15 @@ jobs: |
|
|
|
push: ${{ github.event_name != 'pull_request' }} |
|
|
|
push: ${{ github.event_name != 'pull_request' }} |
|
|
|
tags: ${{ steps.meta.outputs.tags }} |
|
|
|
tags: ${{ steps.meta.outputs.tags }} |
|
|
|
labels: ${{ steps.meta.outputs.labels }} |
|
|
|
labels: ${{ steps.meta.outputs.labels }} |
|
|
|
platforms: linux/amd64,linux/arm64 |
|
|
|
|
|
|
|
|
|
|
|
- name: Sign the published Docker image |
|
|
|
|
|
|
|
if: ${{ github.event_name != 'pull_request' && !github.event.repository.private }} |
|
|
|
|
|
|
|
env: |
|
|
|
|
|
|
|
COSIGN_EXPERIMENTAL: "true" |
|
|
|
|
|
|
|
run: cosign sign ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}@${{ steps.build-and-push.outputs.digest }} |
|
|
|
|
|
|
|
|
|
|
|
- name: Trigger release job |
|
|
|
- name: Trigger release job |
|
|
|
if: false |
|
|
|
if: ${{ success() && github.ref_name == 'main' && github.event_name != 'pull_request' && !github.event.repository.private }} |
|
|
|
# if: ${{ success() && github.ref_name == 'main' && github.event_name != 'pull_request' && !github.event.repository.private }} |
|
|
|
|
|
|
|
uses: toptal/jenkins-job-trigger-action@master |
|
|
|
uses: toptal/jenkins-job-trigger-action@master |
|
|
|
with: |
|
|
|
with: |
|
|
|
jenkins_url: ${{ secrets.JENKINS_URL }} |
|
|
|
jenkins_url: ${{ secrets.JENKINS_URL }} |
|
|
|