Skip to content

Commit

Permalink
ci: add musl image.
Browse files Browse the repository at this point in the history
It was also necessary to reorganize the env section for CI to work.
  • Loading branch information
ericonr committed Nov 28, 2023
1 parent a194d00 commit 5bc536b
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/base-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,26 @@ on:

pull_request:

env:
TAG: ${{ github.event_name == 'push' && github.ref_name || github.head_ref }}
REGISTRY: ghcr.io/${{ github.repository_owner }}
IMAGE: lnls-debian-11-epics-7
SOURCE: https://github.com/${{ github.repository }}

jobs:
build_and_push:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read

strategy:
matrix:
image:
- { dir: base, image: lnls-debian-11-epics-7 }
- { dir: base/musl, image: lnls-alpine-3.18-epics-7 }
env:
TAG: ${{ github.event_name == 'push' && github.ref_name || github.head_ref }}
REGISTRY: ghcr.io/${{ github.repository_owner }}
IMAGE: ${{ matrix.image.image }}
SOURCE: https://github.com/${{ github.repository }}
steps:
- uses: actions/checkout@v3
- name: Build image
run: cd base && JOBS=$(nproc) docker compose build
run: cd ${{ matrix.image.dir }} && JOBS=$(nproc) docker compose build
- name: Log in to registry
if: github.event_name == 'push' && vars.PUSH_TO_REGISTRY == 'true'
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin
Expand Down

0 comments on commit 5bc536b

Please sign in to comment.