Skip to content

Docker build and publish image #2

Docker build and publish image

Docker build and publish image #2

Workflow file for this run

name: Docker build and publish image
on:
push:
tags:
- '*d'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish to Registry
env:
DOCKER_USER: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
run: |
docker login -u $DOCKER_USER -p $DOCKER_PASSWORD
- name: Build the Docker image
run: docker build -t wlanboy/javahttpclient:latest .
- name: Docker Push
run: docker push wlanboy/javahttpclient:latest