-
Notifications
You must be signed in to change notification settings - Fork 166
34 lines (31 loc) · 1.54 KB
/
docker_image_linux.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Docker Release
on:
release:
types: [published]
jobs:
build:
if: github.repository == 'FirelyTeam/spark'
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Login to DockerHub Registry
run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
- name: Get the version
id: vars
run: echo ::set-output name=tag::$(echo ${GITHUB_REF:10})
- name: Build the tagged Spark Docker image
run: docker build . --file .docker/linux/Spark.Dockerfile
-t ${{ secrets.DOCKERHUB_ORGANIZATION }}/spark:${{steps.vars.outputs.tag}}
-t ${{ secrets.DOCKERHUB_ORGANIZATION }}/spark:r4-latest
-t ${{ secrets.DOCKERHUB_ORGANIZATION_2 }}/spark:${{steps.vars.outputs.tag}}
-t ${{ secrets.DOCKERHUB_ORGANIZATION_2 }}/spark:r4-latest
- name: Push the tagged Spark Docker image
run: docker push --all-tags ${{ secrets.DOCKERHUB_ORGANIZATION }}/spark
- name: Build the tagged Mongo Docker image
run: docker build . --file .docker/linux/Mongo.Dockerfile
-t ${{ secrets.DOCKERHUB_ORGANIZATION }}/mongo:${{steps.vars.outputs.tag}}
-t ${{ secrets.DOCKERHUB_ORGANIZATION }}/mongo:r4-latest
-t ${{ secrets.DOCKERHUB_ORGANIZATION_2 }}/mongo:${{steps.vars.outputs.tag}}
-t ${{ secrets.DOCKERHUB_ORGANIZATION_2 }}/mongo:r4-latest
- name: Push the tagged Mongo Docker image
run: docker push --all-tags ${{ secrets.DOCKERHUB_ORGANIZATION }}/mongo