Skip to content

Docker build and publish image #6

Docker build and publish image

Docker build and publish image #6

Workflow file for this run

name: Docker build and publish image
on:
push:
tags:
- '*d'
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Log in to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build the Docker image
run: docker build -t wlanboy/javahttpclient:latest .
- name: Docker Push
run: docker push wlanboy/javahttpclient:latest