Skip to content

Commit

Permalink
Create docker.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lifegpc committed Oct 6, 2023
1 parent 5c6af9f commit a617f0b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Docker Image Deploy

on:
push:
branches: [ "master" ]
paths-ignore:
- '.github/workflows/CI.yaml'
- '.github/workflows/github-pages.yaml'
- 'doc/**'
- README.md

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: true
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: lifegpc
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract metadata for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: lifegpc/pixiv_downloader
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit a617f0b

Please sign in to comment.