Skip to content

Commit ad56d42

Browse files
authored
ci: dev/test blobstore image (#8431)
* ci: dev/test blobstore image * chore: removed QEMU step
1 parent 03d6d59 commit ad56d42

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Build Dev/Test Blobstore Docker Image
2+
3+
on:
4+
push:
5+
branches:
6+
- 'main'
7+
paths:
8+
- '.github/workflows/build-devblobstore.yml'
9+
10+
workflow_dispatch:
11+
12+
env:
13+
MINIO_VERSION: latest
14+
15+
jobs:
16+
publish:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
20+
packages: write
21+
22+
steps:
23+
- uses: actions/checkout@v4
24+
25+
- name: Set up Docker Buildx
26+
uses: docker/setup-buildx-action@v3
27+
28+
- name: Login to GitHub Container Registry
29+
uses: docker/login-action@v3
30+
with:
31+
registry: ghcr.io
32+
username: ${{ github.actor }}
33+
password: ${{ secrets.GITHUB_TOKEN }}
34+
35+
- name: Docker Build & Push
36+
uses: docker/build-push-action@v6
37+
env:
38+
DOCKER_BUILD_NO_SUMMARY: true
39+
with:
40+
context: .
41+
file: docker/devblobstore.Dockerfile
42+
platforms: linux/amd64,linux/arm64
43+
push: true
44+
build-args: MINIO_VERSION=${{ env.MINIO_VERSION }}
45+
tags: |
46+
ghcr.io/ietf-tools/datatracker-devblobstore:${{ env.MINIO_VERSION }}
47+
ghcr.io/ietf-tools/datatracker-devblobstore:latest

docker/devblobstore.Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
ARG MINIO_VERSION=latest
2+
FROM quay.io/minio/minio:${MINIO_VERSION}
3+
LABEL maintainer="IETF Tools Team <[email protected]>"
4+
5+
ENV MINIO_ROOT_USER=minio_root
6+
ENV MINIO_ROOT_PASSWORD=minio_pass
7+
ENV MINIO_DEFAULT_BUCKETS=defaultbucket
8+
9+
CMD ["server", "--console-address", ":9001", "/data"]

0 commit comments

Comments
 (0)