-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #422 from brianhlin/v4-reenable-ci-xfer
V4 reenable ci xfer
- Loading branch information
Showing
3 changed files
with
58 additions
and
33 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Build and upload HTCondor-CE RPMs | ||
on: | ||
release: | ||
# there seems to be contention between 'published' vs 'created' here | ||
# 'published' occurs with a GitHub release | ||
types: [published] | ||
|
||
jobs: | ||
build-rpms-and-upload: | ||
runs-on: ubuntu-latest | ||
if: startsWith(github.repository, 'htcondor/') | ||
strategy: | ||
matrix: | ||
dver: [7, 8] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Prepare Docker | ||
run: | | ||
echo 'DOCKER_OPTS="-H tcp://127.0.0.1:2375 -H unix:///var/run/docker.sock -s devicemapper"' | sudo tee /etc/default/docker > /dev/null && | ||
sudo service docker restart | ||
- name: Start CentOS ${{ matrix.dver}} image | ||
run: | | ||
docker run --detach --env "container=docker" \ | ||
--name $GITHUB_SHA \ | ||
--volume `pwd`:/htcondor-ce:rw \ | ||
centos:centos${{ matrix.dver }} \ | ||
/usr/sbin/init | ||
- name: Build CHTC EL${{ matrix.dver }} RPMs | ||
run: | | ||
docker exec $GITHUB_SHA \ | ||
/bin/bash -xc \ | ||
"/htcondor-ce/tests/build_rpms.sh \ | ||
${{ matrix.dver }} \ | ||
uw_build" | ||
- name: Upload CHTC EL${{ matrix.dver }} RPMs | ||
run: | | ||
ssh-agent -a "$SSH_AUTH_SOCK" > /dev/null | ||
ssh-add - <<< "${{ secrets.CI_XFER_KEY }}" | ||
tests/sftp_upload.sh | ||
env: | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock |
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
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