k8s: testing base image pipeline #1
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: Build and publish base image | |
on: | |
push: | |
branches: | |
- dev | |
#on: | |
# workflow_dispatch: # Allows manual triggering from GitHub UI | |
jobs: | |
build-base: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Log in to Docker Hub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ vars.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and Push Base Image | |
run: | | |
docker build . --file docker/Dockerfile --target emfos-base --tag ${{ vars.DOCKER_USERNAME }}/emfos-base:latest | |
docker push ${{ vars.DOCKER_USERNAME }}/emfos-base:latest | |
- name: Display Success Message | |
run: echo "emfos-base image has been built and pushed manually." |