Skip to content

Commit

Permalink
Update CI to exclude the .dockerbuild files from release (#2655)
Browse files Browse the repository at this point in the history
* Update Release to exclude the .dockerbuild files from release

* release_homebrew only needs the shasum

* Changeset
  • Loading branch information
DmitryDodzin authored Aug 14, 2024
1 parent 09b1900 commit 1369fe5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -183,14 +183,14 @@ jobs:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v2
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
Expand All @@ -199,19 +199,21 @@ jobs:
run: |
echo "version=$(grep -m 1 version Cargo.toml | cut -d' ' -f3 | tr -d '\"')" >> $GITHUB_OUTPUT
id: version

- name: Build and push (test)
if: github.event_name == 'workflow_dispatch'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
file: mirrord/cli/Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/metalbear-co/mirrord-cli-staging:${{ github.sha }}
- name: Build and push (final/release)
if: github.event_name != 'workflow_dispatch'
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .
file: mirrord/cli/Dockerfile
Expand Down Expand Up @@ -241,6 +243,7 @@ jobs:
- uses: actions/download-artifact@v4
with:
path: /tmp/artifacts
pattern: +(*-unknown-linux-gnu|*-apple-darwin)
- uses: montudor/action-zip@v1
- name: Create mirrord linux-x64 zip file
run: |
Expand Down Expand Up @@ -297,6 +300,7 @@ jobs:
steps:
- uses: actions/download-artifact@v4
with:
name: shasum
path: /tmp/artifacts
- uses: actions/checkout@v4
- name: Get release version and hashes
Expand Down
1 change: 1 addition & 0 deletions changelog.d/+fix-release-ci.internal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix ci to re-relese 3.113.0

0 comments on commit 1369fe5

Please sign in to comment.