Skip to content

update ghworkflow

update ghworkflow #9

name: Publish docker images for SYCL
on:
push: { branches: [ 'containers' ] }
jobs:
build-push-container:
strategy:
matrix:
implem: ['sycl']
backend: ['complete']
runs-on: ubuntu-latest
steps:
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/[email protected]
with: { tool-cache: true, large-packages: false }
- name: Checkout built branch
uses: actions/checkout@v3
- name: Build and push
run: |
echo ${{ secrets.GH_ACCESS_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin
cd containers/${{matrix.implem}}-${{matrix.backend}}
docker build \
--cache-from ghcr.io/maison-de-la-simulation/${{matrix.implem}}-${{matrix.backend}} \
--tag ghcr.io/maison-de-la-simulation/${{matrix.implem}}-${{matrix.backend}} \
--squash .
docker push ghcr.io/maison-de-la-simulation/${{matrix.image}}-${{matrix.backend}}