Skip to content

Commit

Permalink
Added pipeline configuration.
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmaurice committed Aug 28, 2023
1 parent e5b6ca6 commit 9f12b02
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/package-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,33 @@ on:
jobs:
push-store-image:
runs-on: ubuntu-latest
defaults:
run:
working-directory: "./Store"
steps:
- name: "Checkout GitHub Action"
- name: Checkout GitHub Action
uses: actions/checkout@main

- name: "Login to GitHub Container Registry"
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{github.actor}}
password: ${{secrets.GITHUB_TOKEN}}
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 }}'"

- 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:${{github.sha}}
tags: ghcr.io/justereseau/jackett:latest,ghcr.io/justereseau/jackett:${{ steps.get_latest_release.outputs.data }}

0 comments on commit 9f12b02

Please sign in to comment.