Merge pull request #52 from limebell/graphql/consensus-peers #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |