Release v2.2.0-r4 #54
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Release | |
on: | |
release: | |
types: [published] | |
jobs: | |
build: | |
runs-on: ubuntu-22.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 |