Skip to content

Commit

Permalink
Switch back to normal
Browse files Browse the repository at this point in the history
  • Loading branch information
Adafede committed Aug 23, 2024
1 parent 33e5ccd commit 09b4a92
Showing 1 changed file with 47 additions and 47 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,58 +61,58 @@ jobs:
if-no-files-found: error
retention-days: 1

build-arm64:
runs-on: warp-ubuntu-latest-arm64-2x
steps:
- name: Prepare
run: |
echo "PLATFORM_PAIR=linux-arm64" >> $GITHUB_ENV
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY_IMAGE }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

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

- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push by digest
id: build
uses: docker/build-push-action@v6
with:
platforms: linux/arm64
labels: ${{ steps.meta.outputs.labels }}
outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true

- name: Export digest
run: |
mkdir -p /tmp/digests
digest="${{ steps.build.outputs.digest }}"
touch "/tmp/digests/${digest#sha256:}"
- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-linux-arm64
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1
# build-arm64:
# runs-on: ubuntu-latest
# steps:
# - name: Prepare
# run: |
# echo "PLATFORM_PAIR=linux-arm64" >> $GITHUB_ENV

# - name: Docker meta
# id: meta
# uses: docker/metadata-action@v5
# with:
# images: ${{ env.REGISTRY_IMAGE }}

# - name: Set up QEMU
# uses: docker/setup-qemu-action@v3

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

# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

# - name: Build and push by digest
# id: build
# uses: docker/build-push-action@v6
# with:
# platforms: linux/arm64
# labels: ${{ steps.meta.outputs.labels }}
# outputs: type=image,name=${{ env.REGISTRY_IMAGE }},push-by-digest=true,name-canonical=true,push=true

# - name: Export digest
# run: |
# mkdir -p /tmp/digests
# digest="${{ steps.build.outputs.digest }}"
# touch "/tmp/digests/${digest#sha256:}"

# - name: Upload digest
# uses: actions/upload-artifact@v4
# with:
# name: digests-linux-arm64
# path: /tmp/digests/*
# if-no-files-found: error
# retention-days: 1

merge:
runs-on: ubuntu-latest
needs:
- build-amd64
- build-arm64
# - build-arm64
steps:
- name: Download digests
uses: actions/download-artifact@v4
Expand Down

0 comments on commit 09b4a92

Please sign in to comment.