Skip to content

container must be running to docker compose cp #3

container must be running to docker compose cp

container must be running to docker compose cp #3

Workflow file for this run

name: Create Versioned Release
on:
push:
branches:
- master
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
export DOCKER_TAG="${{ github.ref_name }}"
touch .env
mkdir -p pam-oidc/bin
docker compose up --build builder
docker compose cp builder:/tmp/pam-oauth2/libpam_oidc_gnu.so ./pam-oidc/bin/
docker compose cp builder:/tmp/pam-oauth2/libpam_oidc_musl.so ./pam-oidc/bin/
docker compose down
- name: Touch Changelog
if: startsWith(github.ref, 'refs/tags/')
run: touch "docs/CHANGELOG-${{ github.ref_name }}.md"
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
./pam-oidc/bin/libpam_oidc_gnu.so
./pam-oidc/bin/libpam_oidc_musl.so
body_path: docs/CHANGELOG-${{ github.ref_name }}.md