Skip to content

Commit 2cd3381

Browse files
authored
chore: add Docker build to tag release workflow (#1336)
Fixes #1331
1 parent ad12b8d commit 2cd3381

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,3 +187,38 @@ jobs:
187187
files: checksum.txt
188188
env:
189189
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
190+
191+
push-docker-image:
192+
runs-on: ubuntu-latest
193+
steps:
194+
- name: Checkout
195+
uses: actions/checkout@v3
196+
197+
- name: Set up QEMU
198+
uses: docker/setup-qemu-action@v3
199+
with:
200+
image: tonistiigi/binfmt:qemu-v8.1.5
201+
202+
- name: Set up Docker Buildx
203+
uses: docker/setup-buildx-action@v3
204+
205+
- name: Login to Docker Hub
206+
uses: docker/login-action@v3
207+
with:
208+
username: ${{ secrets.DOCKERHUB_USERNAME }}
209+
password: ${{ secrets.DOCKERHUB_TOKEN }}
210+
211+
- name: Extract metadata (tags, labels) for Docker
212+
id: meta
213+
uses: docker/metadata-action@v5
214+
with:
215+
images: parseable/parseable
216+
217+
- name: Build and push
218+
uses: docker/build-push-action@v6
219+
with:
220+
context: .
221+
file: ./Dockerfile
222+
push: true
223+
tags: parseable/parseable:${{ github.ref_name }}
224+
platforms: linux/amd64,linux/arm64

0 commit comments

Comments
 (0)