Skip to content

Commit

Permalink
Add OCI image build step to CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
clementguillot committed Feb 20, 2024
1 parent 96aefa6 commit 252c6f9
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .github/workflows/ci.yml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,20 @@ jobs:
- uses: ./.github/actions/nx-affected-target
with:
target: build
build-oci-images:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- uses: ./.github/actions/nx-affected-target
with:
target: container
env:
INPUT_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
test:
runs-on: ubuntu-latest
steps:
Expand Down
9 changes: 8 additions & 1 deletion apps/api/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,14 @@
"file": "apps/api/src/main/docker/Dockerfile.mandrel",
"load": true,
"metadata": {
"images": ["[ghcr.io/clementguillot/nx-cloud-ce-api"],
"images": ["ghcr.io/clementguillot/nx-cloud-ce-api"],
"labels": [
"org.opencontainers.image.title=nx-cloud-ce-api",
"org.opencontainers.image.description=Backend of Nx Cloud CE",
"org.opencontainers.image.url=https://github.com/clementguillot/nx-cloud-ce",
"org.opencontainers.image.source=https://github.com/clementguillot/nx-cloud-ce",
"org.opencontainers.image.licenses=MIT"
],
"tags": [
"type=schedule",
"type=sha,prefix="
Expand Down

0 comments on commit 252c6f9

Please sign in to comment.