-
Notifications
You must be signed in to change notification settings - Fork 1
55 lines (51 loc) · 2.07 KB
/
Copy pathtest-docker-pulls.yml
File metadata and controls
55 lines (51 loc) · 2.07 KB
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
51
52
53
54
55
---
# Ensures that all of the default images in our
# helm values.yaml file are pullable to authenticated
# users.
# Triggered on the PRs to the main branch.
name: Tests - Artifact Pulls
on:
pull_request:
types:
- opened
- synchronize
branches:
- main # test only PRs to main branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
docker-pulls:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6.3.0
- name: Checkout voxel51/aloha-github-workflows
uses: actions/checkout@v7
with:
repository: voxel51/aloha-github-workflows
ref: main
token: ${{ secrets.ORG_RO_ALOHA_GITHUB_WORKFLOWS_FG_PAT }}
path: ./.github/actions/aloha-github-workflows
- name: Set generate-version-file action's path from remote to local
# Public repos cannot access private action repo without GitHub Enterprise
# Instead, we clone the private workflow directory and update the `asdf-install-and-cache/action.yml`
# file's reference to `voxel51/aloha-github-workflows/.github/actions/generate-version-file` with the local path.
shell: bash
run: |
sed -i \
's%voxel51/aloha-github-workflows/.github/actions/generate-version-file@main%./.github/actions/aloha-github-workflows/.github/actions/generate-version-file%' \
.github/actions/aloha-github-workflows/.github/actions/asdf-install-and-cache/action.yml
- name: Temporary SQLite/LZMA - Install missing libraries
run: sudo apt install -y libsqlite3-dev libbz2-dev
- name: Install asdf & tools
uses: ./.github/actions/aloha-github-workflows/.github/actions/asdf-install-and-cache
- name: Login to Docker Hub
uses: docker/login-action@v4
with:
username: ${{ secrets.RO_DOCKERHUB_USERNAME }}
password: ${{ secrets.RO_DOCKERHUB_PAT }}
- name: Test all docker pulls
shell: bash
run: |
./utils/validate-docker-pulls.sh