Skip to content

Commit 0abfb37

Browse files
Resolve a conflict #13160
1 parent 401bd61 commit 0abfb37

File tree

1 file changed

+0
-77
lines changed

1 file changed

+0
-77
lines changed

.github/workflows/oci-make.yaml

Lines changed: 0 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -76,13 +76,6 @@ jobs:
7676
runs-on: ubuntu-latest
7777
if: ${{ needs.build-package-generic-unix.outputs.authorized }} == 'true'
7878
steps:
79-
<<<<<<< HEAD
80-
- name: Prepare
81-
run: |
82-
platform=${{ matrix.platform }}
83-
echo "PLATFORM_PAIR=${platform//\//-}" >> $GITHUB_ENV
84-
=======
85-
>>>>>>> e796b61f4 (Simplified OCI builds)
8679
- name: Checkout
8780
uses: actions/checkout@v4
8881
- name: Download package-generic-unix
@@ -121,79 +114,9 @@ jobs:
121114
with:
122115
push: true
123116
context: packaging/docker-image
124-
<<<<<<< HEAD
125-
platforms: ${{ matrix.platform }}
126-
labels: ${{ steps.meta.outputs.labels }}
127-
cache-to: type=gha
128-
cache-from: type=gha
129-
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true
130-
- name: Export digest
131-
run: |
132-
mkdir -p /tmp/digests
133-
digest="${{ steps.build.outputs.digest }}"
134-
touch "/tmp/digests/${digest#sha256:}"
135-
- name: Upload digest
136-
uses: actions/upload-artifact@v4
137-
with:
138-
name: digests-${{ env.PLATFORM_PAIR }}
139-
path: /tmp/digests/*
140-
if-no-files-found: error
141-
retention-days: 1
142-
143-
merge:
144-
needs:
145-
- build
146-
runs-on: ubuntu-latest
147-
if: ${{ needs.build-package-generic-unix.outputs.authorized }} == 'true'
148-
steps:
149-
- name: Download digests
150-
uses: actions/download-artifact@v4
151-
with:
152-
path: /tmp/digests
153-
pattern: digests-*
154-
merge-multiple: true
155-
- name: Set up Docker Buildx
156-
uses: docker/setup-buildx-action@v3
157-
- name: Docker meta
158-
id: meta
159-
uses: docker/metadata-action@v5
160-
with:
161-
images: ${{ env.REGISTRY_IMAGE }}
162-
tags: |
163-
type=ref,event=branch
164-
type=ref,event=pr
165-
type=sha,format=long
166-
- name: Login to Docker Hub
167-
uses: docker/login-action@v3
168-
with:
169-
username: ${{ secrets.DOCKERHUB_USERNAME }}
170-
password: ${{ secrets.DOCKERHUB_PASSWORD }}
171-
- name: Create manifest list and push
172-
working-directory: /tmp/digests
173-
run: |
174-
docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \
175-
$(printf '${{ env.REGISTRY_IMAGE }}@sha256:%s ' *)
176-
- name: Inspect image
177-
run: |
178-
docker buildx imagetools inspect ${{ env.REGISTRY_IMAGE }}:${{ steps.meta.outputs.version }}
179-
180-
summary-oci:
181-
needs:
182-
- build-package-generic-unix
183-
- build
184-
- merge
185-
runs-on: ubuntu-latest
186-
steps:
187-
- name: SUMMARY
188-
run: |
189-
cat << 'EOF' | jq -e 'map(.result == "success") | all(.)'
190-
${{ toJson(needs) }}
191-
EOF
192-
=======
193117
platforms: ${{ github.event.inputs.build_arm && 'linux/amd64, linux/arm64' || 'linux/amd64' }}
194118
tags: ${{ steps.meta.outputs.tags }}
195119
cache-to: type=gha,mode=max,scope=${{ matrix.otp_version }}
196120
cache-from: type=gha,scope=${{ matrix.otp_version }}
197121
build-args:
198122
OTP_VERSION=${{ matrix.otp_version }}
199-
>>>>>>> e796b61f4 (Simplified OCI builds)

0 commit comments

Comments
 (0)