Skip to content

Commit fe7121a

Browse files
committed
github-actions: build images
1 parent 0473d9b commit fe7121a

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/build-images.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
---
2+
# This workflow publishes docker images base on .ci/.docker-images.yml`.
3+
# See docs/INTERNAL_DOCKER_IMAGES.md for further information.
4+
name: publish-docker-images
5+
6+
on:
7+
workflow_dispatch:
8+
9+
env:
10+
DOCKER_BUILDKIT: 1
11+
12+
permissions:
13+
contents: read
14+
15+
jobs:
16+
17+
build-test-push:
18+
runs-on: ubuntu-latest
19+
steps:
20+
21+
- uses: actions/checkout@v4
22+
23+
- name: Login to docker.elastic.co
24+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
25+
with:
26+
registry: ${{ secrets.ELASTIC_DOCKER_REGISTRY }}
27+
username: ${{ secrets.ELASTIC_DOCKER_USERNAME }}
28+
password: ${{ secrets.ELASTIC_DOCKER_PASSWORD }}
29+
30+
- name: Login to dockerhub
31+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
32+
with:
33+
registry: ${{ secrets.DOCKERHUB_REGISTRY }}
34+
username: ${{ secrets.DOCKERHUB_USERNAME }}
35+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
36+
37+
- run: ./util.sh --action build
38+
working-directory: .ci/docker
39+
40+
#- run: ./util.sh --action push
41+
# working-directory: .ci/docker

0 commit comments

Comments
 (0)