Skip to content

Commit a17ab95

Browse files
committed
update actions
1 parent a447294 commit a17ab95

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
lines changed

.github/workflows/latest.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: latest
22
on:
33
push:
4+
branches:
5+
- main
46
jobs:
57
lint:
68
runs-on: ubuntu-latest
@@ -14,8 +16,8 @@ jobs:
1416
needs: lint
1517
steps:
1618
- 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
1822
with:
19-
python-version: "3.8"
20-
- run: pip install pipenv
21-
- run: make build
23+
platforms: linux/amd64

.github/workflows/push.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,20 @@ jobs:
1616
needs: lint
1717
steps:
1818
- uses: actions/checkout@v3
19+
- uses: docker/setup-qemu-action@v3
20+
- uses: docker/setup-buildx-action@v3
1921
- uses: docker/login-action@v2
2022
with:
2123
username: ${{ secrets.DOCKERHUB_USERNAME }}
2224
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
2432
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 }}

0 commit comments

Comments
 (0)