Added pipeline configuration. #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Images to GHCR | |
env: | |
IMAGE_NAME: ghcr.io/justereseau/jackett | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
push-store-image: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout GitHub Action | |
uses: actions/checkout@main | |
- name: Login to GitHub Container Registry | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Read latest Jackett release | |
uses: octokit/request-action@v2.x | |
id: get_latest_release | |
with: | |
route: GET /repos/{owner}/{repo}/releases/latest | |
owner: Jackett | |
repo: Jackett | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- run: "echo latest release: '${{ steps.get_latest_release.outputs.data['tag_name'] }}'" | |
# - name: Build and push | |
# uses: docker/build-push-action@v4 | |
# with: | |
# context: . | |
# file: ./Dockerfile | |
# push: true | |
# tags: ghcr.io/justereseau/jackett:latest,ghcr.io/justereseau/jackett:${{ steps.get_latest_release.outputs.data.tag_name }} |