Skip to content

Build and publish docker image #8

Build and publish docker image

Build and publish docker image #8

name: Build and publish docker image
on:
workflow_dispatch:
jobs:
build-and-publish-docker-image:
runs-on: ubuntu-latest
environment: prod
steps:
- name: Checkout the code
uses: actions/checkout@v4
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and push docker images
run: |
pwd
cd ./src/build
pwd
ls -la
./build-docker-images.sh
./push-docker-images.sh
docker images