Skip to content

Commit

Permalink
Merge pull request #149 from fusion-energy/develop
Browse files Browse the repository at this point in the history
updated docker build script
  • Loading branch information
shimwell authored Oct 26, 2022
2 parents c5dee66 + 7e9dd9b commit cae86db
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,31 +14,31 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Set up QEMU
uses: docker/setup-qemu-action@v1
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
uses: docker/setup-buildx-action@v2

- name: Login to GitHub Container Registry
uses: docker/login-action@v1
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Cache Docker layers
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-single-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-single-buildx
- name: dependencies build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
target: dependencies
Expand All @@ -59,7 +59,7 @@ jobs:
mv /tmp/.buildx-cache-new /tmp/.buildx-cache
- name: base build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
target: base
Expand All @@ -70,7 +70,7 @@ jobs:
compile_cores=2
- name: default build and push Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v
with:
push: true
tags: ghcr.io/fusion-energy/neutronics-workshop
Expand All @@ -80,7 +80,7 @@ jobs:
compile_cores=2
- name: embree build and push the Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/fusion-energy/neutronics-workshop:embree
Expand All @@ -90,7 +90,7 @@ jobs:
compile_cores=2
- name: embree-avx build and push the Docker image
uses: docker/build-push-action@v2
uses: docker/build-push-action@v3
with:
push: true
tags: ghcr.io/fusion-energy/neutronics-workshop:embree-avx
Expand Down

0 comments on commit cae86db

Please sign in to comment.