dispatch-from-file-service #119
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: Update oc.cupsd | |
on: | |
repository_dispatch: | |
types: | |
- dispatch-from-cups | |
- dispatch-from-file-service | |
- dispatch-from-printer-service | |
push: | |
env: | |
imagetag: "${{ github.event.client_payload.ref || github.ref_name }}" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Checkout repository file-service | |
uses: actions/checkout@v4 | |
with: | |
repository: 'abcdesktopio/file-service' | |
ref: 'main' | |
path: 'composer/node/file-service' | |
- name: Checkout repository oc.user.libraries to common-libraries | |
uses: actions/checkout@v4 | |
with: | |
repository: 'abcdesktopio/oc.user.libraries' | |
ref: 'main' | |
path: 'composer/node/common-libraries' | |
- name: Checkout repository printer-service | |
uses: actions/checkout@v4 | |
with: | |
repository: 'abcdesktopio/printer-service' | |
ref: 'main' | |
path: 'composer/node/printer-service' | |
- 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.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v5 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
tags: abcdesktopio/oc.cupsd:${{ env.imagetag }} |