Skip to content

Commit

Permalink
Move build-and-push workflow to the shared workflows repo (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuchi authored Jan 22, 2024
1 parent 0e506af commit 46bdde6
Showing 1 changed file with 4 additions and 24 deletions.
28 changes: 4 additions & 24 deletions .github/workflows/build-and-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,7 @@ on:
branches: ["master"]

jobs:
publish:

runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Log in to the Container registry
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build and push Docker image
uses: docker/[email protected]
with:
push: true
tags: ghcr.io/trusted/url-to-pdf-api:c-${{ github.sha }}
build-and-publish:
uses: trusted/shared-workflows/.github/workflows/build_and_push_dockerfile.yml@main
with:
image_name: url-to-pdf-api

0 comments on commit 46bdde6

Please sign in to comment.