-
Notifications
You must be signed in to change notification settings - Fork 49
38 lines (31 loc) · 1.24 KB
/
pull_latest_dockers.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
name: Get Latest Dockers
on:
# allow triggering manually
workflow_dispatch:
# run when updated
push:
branches: '*'
paths:
- '.github/workflows/pull_latest_dockers.yml'
# run when updated
schedule:
- cron: "0 */23 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update-runner-mainline:
strategy:
fail-fast: false
matrix:
runner: ['mi200', 'mi100', 'vega20', 'navi32']
os: ['ubuntu-22.04', 'ubuntu-20.04', 'sles', 'rhel-9.x', 'rhel-8.x']
runs-on: ${{ matrix.runner }}
steps:
- name: pull-image
run: |
docker pull compute-artifactory.amd.com:5000/rocm-plus-docker/compute-rocm-dkms-no-npi-hipclang:$(wget -qO- "http://rocm-ci.amd.com/job/compute-rocm-dkms-no-npi-hipclang/lastSuccessfulBuild/buildNumber")-${{ matrix.os }}-stg1
- name: tag-image
run: |
docker tag compute-artifactory.amd.com:5000/rocm-plus-docker/compute-rocm-dkms-no-npi-hipclang:$(wget -qO- "http://rocm-ci.amd.com/job/compute-rocm-dkms-no-npi-hipclang/lastSuccessfulBuild/buildNumber")-${{ matrix.os }}-stg1 localhost:5000/mainline-${{ matrix.os }}-stg1:latest
docker push localhost:5000/mainline-${{ matrix.os }}-stg1:latest