Add the extension to base (#202) #255
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Build and push sidecar containers | |
on: | |
push: | |
# only pushes on master so we don't push intermediate results to dockerhub | |
branches: | |
- master | |
pull_request: | |
jobs: | |
detect-changes: | |
uses: ./.github/workflows/build-list.yml | |
with: | |
images: | | |
"d4science-storage/Dockerfile" | |
"oneclient-sidecar/Dockerfile" | |
"single-user-eiscat/Dockerfile" | |
"webdav-sidecar/Dockerfile" | |
"webdav-sidecar/mount.sh" | |
"webdav-rclone-sidecar/Dockerfile" | |
"webdav-rclone-sidecar/mount.sh" | |
sidecar-images: | |
name: Build and push independent images | |
needs: detect-changes | |
if: toJson(fromJson(needs.detect-changes.outputs.matrix).image) != '[]' | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: ${{ fromJson(needs.detect-changes.outputs.matrix) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Docker meta | |
id: docker_meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: eginotebooks/${{ matrix.image }} | |
tags: | | |
type=sha | |
latest | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to DockerHub | |
uses: docker/login-action@v3 | |
with: | |
username: ${{ secrets.DOCKERHUB_USERNAME }} | |
password: ${{ secrets.DOCKERHUB_TOKEN }} | |
if: github.event_name != 'pull_request' | |
- name: Build and push | |
uses: docker/build-push-action@v6 | |
with: | |
context: ${{ matrix.image }} | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.docker_meta.outputs.tags }} | |
labels: ${{ steps.docker_meta.outputs.labels }} |