File tree Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Expand file tree Collapse file tree 2 files changed +18
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : latest
2
2
on :
3
3
push :
4
+ branches :
5
+ - main
4
6
jobs :
5
7
lint :
6
8
runs-on : ubuntu-latest
14
16
needs : lint
15
17
steps :
16
18
- uses : actions/checkout@v3
17
- - uses : actions/setup-python@v4
19
+ - uses : docker/setup-qemu-action@v3
20
+ - uses : docker/setup-buildx-action@v3
21
+ - uses : docker/build-push-action@v5
18
22
with :
19
- python-version : " 3.8"
20
- - run : pip install pipenv
21
- - run : make build
23
+ platforms : linux/amd64
Original file line number Diff line number Diff line change @@ -16,13 +16,20 @@ jobs:
16
16
needs : lint
17
17
steps :
18
18
- uses : actions/checkout@v3
19
+ - uses : docker/setup-qemu-action@v3
20
+ - uses : docker/setup-buildx-action@v3
19
21
- uses : docker/login-action@v2
20
22
with :
21
23
username : ${{ secrets.DOCKERHUB_USERNAME }}
22
24
password : ${{ secrets.DOCKERHUB_TOKEN }}
23
- - uses : actions/setup-python@v3
25
+ - name : meta
26
+ id : meta
27
+ run : |
28
+ version="$(jq -r '.default."apache-superset".version' Pipfile.lock | grep -Eo '[0-9.]+')"
29
+ tags="amancevice/superset,amancevice/superset:$version"
30
+ echo "tags=$tags" >> $GITHUB_OUTPUTS
31
+ - uses : docker/build-push-action@v5
24
32
with :
25
- python-version : " 3.8"
26
- - run : pip install pipenv
27
- - run : make build
28
- - run : make push
33
+ platforms : linux/amd64
34
+ push : true
35
+ tags : ${{ steps.meta.outputs.tags }}
You can’t perform that action at this time.
0 commit comments