Skip to content

Commit

Permalink
Use official Swift images for amd64 and arm64 (#59)
Browse files Browse the repository at this point in the history
* Use Official Images (Focal) for amd64 and arm64

* Update docker.yml

* Dockerfile takes over swift version
  • Loading branch information
Kaiede committed Aug 30, 2022
1 parent fa27fc8 commit 1730503
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Variables
run: . Docker/configure.sh ${{ matrix.arch }}

- name: Set up QEMU
uses: docker/setup-qemu-action@master
if: matrix.arch != 'amd64'
Expand Down
5 changes: 1 addition & 4 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@

ARG swift_base=swift
ARG swift_version=5.6.2
ARG swift_image=$swift_base:$swift_version
ARG swift_image=swift:5.6.2-focal

###### BUILDER
FROM $swift_image as builder
Expand Down
6 changes: 3 additions & 3 deletions build-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ if [ "$arch" == "aarch64" ]; then
arch=arm64
fi

. Docker/configure.sh $arch
#. Docker/configure.sh $arch

dockerTag=$dockerRepo:${tag}-${arch}

docker build . -f Docker/Dockerfile \
-t $dockerTag \
--build-arg arch=${arch} \
--build-arg swift_base=${swift_base} \
--build-arg swift_version=${swift_version}
# --build-arg swift_base=${swift_base} \
# --build-arg swift_version=${swift_version}

0 comments on commit 1730503

Please sign in to comment.