Skip to content

Commit

Permalink
Housekeeping: Drop the concept of multiple arches.
Browse files Browse the repository at this point in the history
  • Loading branch information
ProjectSynchro committed Jan 5, 2024
1 parent 0af168d commit 4cffe92
Show file tree
Hide file tree
Showing 11 changed files with 2 additions and 26 deletions.
28 changes: 2 additions & 26 deletions .github/workflows/docker_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,44 +17,30 @@ jobs:
matrix:
include:
- context: "naev-artwork/blender2.79b"
arch: amd64
imagename: "naev-artwork"
blender: "blender2.79b"
- context: "naev-docs"
arch: amd64
imagename: "naev-docs"
- context: "naev-release"
arch: amd64
imagename: "naev-release"
- context: "naev-steamruntime"
arch: amd64
imagename: "naev-steamruntime"
- context: "naev-windows"
arch: amd64
imagename: "naev-windows"
- context: "naev-macos"
arch: amd64
imagename: "naev-macos"
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Generate image metadata
id: docker_meta
if: ${{ matrix.arch != 'aarch64' || matrix.imagename == 'naev-artwork' }}
if: ${{ matrix.imagename == 'naev-artwork' }}
uses: docker/metadata-action@v4
with:
images: ghcr.io/naev/${{ matrix.imagename }}
flavor: |
latest=${{ inputs.publish }}
- name: Generate image metadata (aarch64)
id: docker_meta_aarch64
if: ${{ matrix.arch == 'aarch64' }}
uses: docker/metadata-action@v4
with:
images: ghcr.io/naev/${{ matrix.imagename }}
flavor: |
suffix=-${{ matrix.arch }},onlatest=true
- name: Generate image metadata (artwork)
id: docker_meta_artwork
if: ${{ matrix.imagename == 'naev-artwork' }}
Expand All @@ -75,19 +61,9 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build Image
id: docker_build
if: ${{ matrix.arch != 'aarch64' }}
uses: docker/build-push-action@v3
with:
context: ${{ matrix.context }}
file: "${{ matrix.context }}/Dockerfile.${{ matrix.arch }}"
file: "${{ matrix.context }}/Dockerfile"
push: ${{ inputs.publish }}
tags: ${{ steps.docker_meta.outputs.tags }}
- name: Build Image (aarch64)
id: docker_build_aarch64
if: ${{ matrix.arch == 'aarch64' }}
uses: docker/build-push-action@v3
with:
context: ${{ matrix.context }}
file: "${{ matrix.context }}/Dockerfile.${{ matrix.arch }}"
push: ${{ inputs.publish }}
tags: ${{ steps.docker_meta_aarch64.outputs.tags }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 4cffe92

Please sign in to comment.