From 7ae0e63c74e719c7ea7675b1819f521003d49566 Mon Sep 17 00:00:00 2001 From: Niccolo Raspa Date: Wed, 16 Mar 2022 11:25:58 +0100 Subject: [PATCH 1/2] Add GH Action to push to Docker Registry --- .github/workflows/docker.yml | 51 ++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/docker.yml diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml new file mode 100644 index 00000000000..8f51f8a5d0e --- /dev/null +++ b/.github/workflows/docker.yml @@ -0,0 +1,51 @@ +name: docker + +on: + push: + tags: + - 'v[0-9]+.[0-9]+.[0-9]+' # ignore rc + +env: + DOCKER_REPOSITORY: osmolabs/osmosis + +jobs: + docker: + runs-on: ubuntu-latest + steps: + - + name: Check out the repo + uses: actions/checkout@v2 + - + name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - + name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - + name: Login to DockerHub + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - + name: Docker meta + id: meta + uses: docker/metadata-action@v3 + with: + images: ${{ env.DOCKER_REPOSITORY }} + tags: | + type=semver,pattern={{version}} + type=semver,pattern={{major}}.{{minor}} + type=semver,pattern={{major}} + - + name: Build and push + uses: docker/build-push-action@v2 + with: + file: Dockerfile + context: . + push: true + platforms: linux/amd64 + tags: ${{ steps.meta.outputs.tags }} + - + name: Image digest + run: echo ${{ steps.docker_build.outputs.digest }} \ No newline at end of file From f02c2828c8b09925a69f305eb0fa12b9531eac38 Mon Sep 17 00:00:00 2001 From: Niccolo Raspa Date: Wed, 16 Mar 2022 11:35:17 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0844f739495..cf1567fe873 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * [#1061](https://github.com/osmosis-labs/osmosis/pull/1061) upgrade iavl to v0.17.3-osmo-v5 with concurrent map write fix * [#1071](https://github.com/osmosis-labs/osmosis/pull/1071) improve Dockerfile * [#1095](https://github.com/osmosis-labs/osmosis/pull/1095) Fix authz being unable to use lockup & superfluid types. +* [#1105](https://github.com/osmosis-labs/osmosis/pull/1105) Add GitHub Actions to automatically push the osmosis Docker image ### SDK fork updates