-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (46 loc) · 1.62 KB
/
on-merge.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: On merge
on:
push:
branches:
- main
jobs:
update-pull-requests:
name: Update pull requests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: update all prs
uses: maxkomarychev/pr-updater-action@92cb6e15dc3c4b9b148b65eef32836bb428587b9 # v1.0.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
deploy:
name: Deploy to test
runs-on: ubuntu-latest
steps:
- name: Jenkins webhook
uses: enflo/curl-action@fabe347922c7a9e88bafa15c4b7d6326ea802695
with:
curl: 'https://${{ secrets.JENKINS_USER }}@${{ secrets.JENKINS_HOST }}/job/DeployCalifornica/buildWithParameters?GIT_BRANCH=main&cause=GitHub+Action+Post+Merge+Build&DEPLOY_HOST=t-w-californica01.library.ucla.edu&token=${{ secrets.JENKINS_API_CALIFORNICA_TOKEN }}'
docker-build:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: uclalibrary/californica:latest
platforms: linux/amd64,linux/arm64
build-args: FCREPO_VERSION=4.7.5