Spark Docker Image CI #8
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: Spark Docker Image CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ "master" ] | |
paths: | |
- ./docker/spark/** | |
pull_request: | |
branches: [ "master" ] | |
paths: | |
- ./docker/spark/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: './docker/spark/' | |
steps: | |
- uses: actions/checkout@v4 | |
- name: 'Login to GitHub Container Registry' | |
uses: docker/login-action@v1 | |
with: | |
registry: ghcr.io | |
username: ${{github.actor}} | |
password: ${{secrets.REGISTRY_TOKEN}} | |
- name: Build the Spark Image | |
run: | | |
docker build . --file Dockerfile --tag ghcr.io/fxttr/spark:latest | |
docker push ghcr.io/fxttr/spark:latest |