Skip to content

Update docker-image.yml #7

Update docker-image.yml

Update docker-image.yml #7

Workflow file for this run

name: Build and Push Docker Image to Docker Hub
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
# Use docker.io for Docker Hub if empty
REGISTRY: docker.io
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
REPO_BASE: ${{ secrets.REPO_BASE }}
jobs:
build:
runs-on: ubuntu-latest
environment: Build
steps:
- uses: actions/checkout@v4
- name: Show base
run: echo "$GITHUB_CONTEXT"
- name: Log in to Docker Hub
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build the Docker image
run: ./k8s/build.sh v1.0.0