diff --git a/.github/workflows/included-images.yml b/.github/workflows/included-images.yml new file mode 100644 index 0000000..31702a8 --- /dev/null +++ b/.github/workflows/included-images.yml @@ -0,0 +1,33 @@ +name: Build included image +on: + workflow_run: + workflows: ["Base image build"] + tags: + - 'v*' + types: + - completed + +jobs: + build_and_push: + runs-on: ubuntu-latest + permissions: + packages: write + contents: read + env: + REGISTRY: ghcr.io/${{ github.repository_owner }} + TAG: ${{ github.ref_name }} + steps: + - uses: actions/checkout@v4 + - uses: docker/setup-buildx-action@v3 + - name: Log in to registry + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push tagged image + uses: docker/bake-action@v4 + with: + workdir: images/ + files: docker-compose-opcua.yml + push: true