-
Notifications
You must be signed in to change notification settings - Fork 1
93 lines (81 loc) · 2.89 KB
/
regression.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: ci
on:
push:
branches:
- 'feature_regressiontests'
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
push_to_registry:
name: Push Docker image to Docker Hub
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
attestations: write
id-token: write
steps:
- name: Check out the repo
uses: actions/checkout@v4
- name: Login in to Docker hub
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GHCR_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
push: true
file: ./docker/build/Dockerfile_test
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
labels: latest
# regression:
# runs-on: ubuntu-latest
# permissions:
# packages: write
# steps:
# - name: Authenticate to GHCR registry
# run: docker login --username EvertBunschoten --password ${{ secrets.GHCR_TOKEN }} ghcr.io
# - name: Run regression tests
# uses: docker://ghcr.io/evertbunschoten/su2dataminer_test:latest
# with:
# args: -b ${{ github.ref }} -s run_regression.py
# build:
# runs-on: 'ubuntu-latest'
# steps:
# - uses: actions/checkout@v3
# - name: Build and push the image
# run : |
# docker login --username EvertBunschoten --password ${{ secrets.GHCR_TOKEN }} ghcr.io
# docker build . --file ./docker/build/Dockerfile_test --tag ghcr.io/evertbunschoten/su2dataminer_test:latest
# docker push ghcr.io/evertbunschoten/su2dataminer_test:latest
# # -
# # name: Build and push
# # uses: docker/build-push-action@v6
# # with:
# # push: true
# # file: ./docker/build/Dockerfile_test
# # tags: |
# # ecbunschoten/su2dataminer_test:latest
# # - name: "Run regression"
# # uses: docker://ghcr.io/ecbunschoten/su2dataminer_test:latest
# # with:
# # args: -b ${{ github.ref }} -s run_regression.py
# # - name: Push image to GHCR
# # run: |
# # docker buildx imagetools create \
# # --tag ghcr.io/ecbunschoten/su2dataminer_test:latest \
# # --tag ghcr.io/ecbunschoten/su2dataminer_test:1.0.0 \
# # ecbunschoten/su2dataminer_test:latest
# # - name: Pre Cleanup
# # uses: docker://ghcr.io/ecbunschoten/su2dataminer_test:latest
# # with:
# # entrypoint: /bin/rm
# # args: -rf install install_bin.tgz src ccache
# - name: Run regression tests
# uses: docker://ghcr.io/evertbunschoten/su2dataminer_test:latest
# with:
# args: -b ${{ github.ref }} -s run_regression.py