From cccfad93d8a478a7737d4f5f44582352e5031ace Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Sun, 7 May 2023 00:40:48 +0700 Subject: [PATCH 1/3] use ghcr --- .github/workflows/release.yml | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 593787324f..aefac27c8a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,8 +25,8 @@ jobs: config: - { os: ubuntu-latest, target: x86_64-unknown-linux-gnu } - { os: ubuntu-latest, target: aarch64-unknown-linux-gnu } - - { os: macos-latest, target: x86_64-apple-darwin } - - { os: macos-latest, target: aarch64-apple-darwin } + - { os: macos-latest, target: x86_64-apple-darwin } + - { os: macos-latest, target: aarch64-apple-darwin } runs-on: ${{ matrix.config.os }} steps: - uses: actions/checkout@v2 @@ -60,12 +60,18 @@ jobs: docker-release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Set up Docker Buildx id: buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2 + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} - name: Login to Docker Hub - uses: docker/login-action@v1 + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKER_HUB_USERNAME }} password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} @@ -73,12 +79,15 @@ jobs: run: echo "TAG=${GITHUB_REF#refs/tags/v}" >> $GITHUB_ENV - name: Build and push id: docker_build - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v4 with: context: ./ci/release/ file: ./ci/release/hermes.Dockerfile push: true build-args: TAG=v${{env.TAG}} - tags: informalsystems/hermes:${{env.TAG}} + platforms: linux/amd64,linux/arm64 + tags: | + informalsystems/hermes:${{env.TAG}} + ghcr.io/informalsystems/hermes:${{env.TAG}} cache-from: type=gha cache-to: type=gha,mode=max From f3b552fcb857cf1876ed3bfa86ef04be6f8ad44d Mon Sep 17 00:00:00 2001 From: Jacob Gadikian Date: Sun, 7 May 2023 00:44:49 +0700 Subject: [PATCH 2/3] add changelog --- .changelog/unreleased/feat/3305.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .changelog/unreleased/feat/3305.md diff --git a/.changelog/unreleased/feat/3305.md b/.changelog/unreleased/feat/3305.md new file mode 100644 index 0000000000..f150ad17b1 --- /dev/null +++ b/.changelog/unreleased/feat/3305.md @@ -0,0 +1 @@ +publish multiplatform images to docker and ghcr From 2aecfa5da136fb4cee2a3df76df5356ab9b959f6 Mon Sep 17 00:00:00 2001 From: Romain Ruetschi Date: Mon, 8 May 2023 10:59:30 +0200 Subject: [PATCH 3/3] Delete changelog entry Signed-off-by: Romain Ruetschi --- .changelog/unreleased/feat/3305.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .changelog/unreleased/feat/3305.md diff --git a/.changelog/unreleased/feat/3305.md b/.changelog/unreleased/feat/3305.md deleted file mode 100644 index f150ad17b1..0000000000 --- a/.changelog/unreleased/feat/3305.md +++ /dev/null @@ -1 +0,0 @@ -publish multiplatform images to docker and ghcr