Skip to content

Workflow file for this run

name: Build and Push Docker Image on Release
on:
release:
types:
- published
jobs:
build-and-push-docker:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
# Set up Docker
- name: Log in to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
# Build and push the Docker image
- name: Build and Push Docker Image
uses: docker/build-push-action@v4
with:
context: .
push: true
tags: |
huankong233/hklist:${{ github.ref_name }}
huankong233/hklist:latest