Skip to content

Docker Image CI

Docker Image CI #29

Workflow file for this run

name: Docker Image CI
on:
workflow_dispatch:
inputs:
action_name:
description: 'Choose the action to perform'
required: true
default: 'build'
type: string
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build the Docker image
run: docker build . --file DockerfileChrome --tag liuroy/centos7-java8-chrome110
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push Docker image
run: |
docker push liuroy/centos7-java8-chrome110