Skip to content

Commit 41becea

Browse files
authored
Merge pull request #193 from hathitrust/pin-github-actions
Update github actions
2 parents 4ae9000 + f992a6a commit 41becea

5 files changed

Lines changed: 23 additions & 25 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,21 @@ on:
3131
type: boolean
3232
default: false
3333

34+
3435
jobs:
3536
build-image:
36-
runs-on: ubuntu-latest
3737
permissions:
3838
contents: read
3939
packages: write
40-
41-
steps:
42-
- name: Build Image
43-
uses: hathitrust/github_actions/build@v1
44-
with:
45-
image: ghcr.io/${{ github.repository }}
46-
dockerfile: Dockerfile
47-
img_tag: ${{ inputs.img_tag }}
48-
tag: ${{ inputs.ref }}
49-
push_latest: ${{ inputs.push_latest || false }}
50-
registry_token: ${{ github.token }}
51-
rebuild: ${{ inputs.rebuild || false }}
52-
build-args: 'version="commit ${{ github.sha }}"'
53-
platforms: ${{ inputs.platforms || 'linux/amd64,linux/arm64' }}
40+
name: Build Image
41+
uses: hathitrust/github_actions/.github/workflows/build.yml@98a7b0f67c16b968bb1f357ac50224dbfa789f3f # v2.0.2
42+
with:
43+
image: ghcr.io/${{ github.repository }}
44+
dockerfile: Dockerfile
45+
img_tag: ${{ inputs.img_tag }}
46+
tag: ${{ inputs.ref }}
47+
push_latest: ${{ inputs.push_latest || false }}
48+
rebuild: ${{ inputs.rebuild || false }}
49+
build-args: 'version="commit ${{ github.sha }}"'
50+
platforms: ${{ inputs.platforms || 'linux/amd64,linux/arm64' }}
51+
secrets: inherit

.github/workflows/tag-release.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
name: Docker Tag Latest Release
1+
name: Tag Latest Image with Release Version
22

33
on:
44
release:
5-
types: [ released ]
5+
types: [released]
66

77
jobs:
88
tag-release:
9-
runs-on: ubuntu-latest
10-
steps:
11-
- uses: hathitrust/github_actions/tag-release@v1
12-
with:
13-
registry_token: ${{ github.token }}
14-
existing_tag: ghcr.io/hathitrust/feed:${{ github.sha }}
15-
image: ghcr.io/hathitrust/feed
16-
new_tag: ${{ github.event.release.tag_name }}
9+
name: Tag Release
10+
uses: hathitrust/github_actions/.github/workflows/tag-release.yml@98a7b0f67c16b968bb1f357ac50224dbfa789f3f # v2.0.2
11+
with:
12+
existing_tag: ghcr.io/${{ github.repository }}:${{ github.sha }}
13+
image: ghcr.io/${{ github.repository }}
14+
new_tag: ${{ github.event.release.tag_name }}
15+
secrets: inherit

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,4 @@ var/*
3333
.cpanm
3434
MYMETA.json
3535
MYMETA.yml
36+
jobmetrics
-1 MB
Binary file not shown.

jobmetrics/iNmv0,m$%3

-4 KB
Binary file not shown.

0 commit comments

Comments
 (0)