Skip to content

Commit

Permalink
Init workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Stephane Gouache committed Nov 15, 2023
1 parent f19a9a3 commit c61ae26
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/build-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
name: Build container
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build-dev-container:
runs-on: ubuntu-latest
permissions:
packages: write # to write in the Github package registry
steps:
- name: Checkout khiops-server sources
uses: actions/checkout@v3
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Login to Github Packages
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build image and push to GitHub Container Registry
uses: docker/build-push-action@v2
with:
file: ./Dockerfile
tags: ghcr.io/khiopsml/khiops-server/server:latest
push: true
- name: Display the image digest
run: echo ${{ steps.docker_build.outputs.digest }}

0 comments on commit c61ae26

Please sign in to comment.