Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
[skip ci] Improves github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
redbaty committed Oct 15, 2023
1 parent 9e5a1b4 commit 80374d1
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- 'main'
paths-ignore:
- '**/README.md'
- 'assets/**'
- 'Wasari.Tvdb*/**'

jobs:
docker:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
push:
branches:
- 'main'
paths-ignore:
- '**/README.md'
- 'assets/**'
- 'Wasari.Tvdb*/**'

jobs:
docker:
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/main/docker-wasari-tvdb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: docker-wasari-tvdb-api

on:
push:
branches:
- main
paths:
- 'Wasari.Tvdb*/**'

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
file: ./Wasari.Tvdb.Api/Dockerfile
push: true
tags: redbaty/wasari-tvdb-api:latest, redbaty/wasari-tvdb-api:${{ github.sha }}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
paths-ignore:
- '**/README.md'
- 'assets/**'
- 'Wasari.Tvdb*/**'
jobs:
build:

Expand Down

0 comments on commit 80374d1

Please sign in to comment.