Skip to content

Merge pull request #52 from limebell/graphql/consensus-peers #31

Merge pull request #52 from limebell/graphql/consensus-peers

Merge pull request #52 from limebell/graphql/consensus-peers #31

name: Docker Image CI
on:
push:
branches: [ main ]
jobs:
build_and_push:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: login
run: docker login -u '${{ secrets.DOCKER_USERNAME }}' -p '${{ secrets.DOCKER_ACCESS_TOKEN }}'
- name: setup-qemu
run: |
docker run --rm --privileged multiarch/qemu-user-static \
--reset \
-p yes
- name: build-and-push-amd64
run: |
docker build . \
-f Dockerfile.amd64 \
-t planetariumhq/libplanet-seed:git-${{ github.sha }}-amd64 \
--build-arg COMMIT=git-${{ github.sha }}
docker push planetariumhq/libplanet-seed:git-${{ github.sha }}-amd64
- name: build-and-push-arm64v8
run: |
docker build . \
-f Dockerfile.arm64v8 \
-t planetariumhq/libplanet-seed:git-${{ github.sha }}-arm64v8 \
--build-arg COMMIT=git-${{ github.sha }}
docker push planetariumhq/libplanet-seed:git-${{ github.sha }}-arm64v8
- name: merge-manifest-and-push
run: |
docker manifest create planetariumhq/libplanet-seed:git-${{ github.sha }} \
--amend planetariumhq/libplanet-seed:git-${{ github.sha }}-amd64 \
--amend planetariumhq/libplanet-seed:git-${{ github.sha }}-arm64v8
docker manifest push planetariumhq/libplanet-seed:git-${{ github.sha }}