Skip to content

Commit 581879d

Browse files
authored
Update blank.yml
1 parent b818daf commit 581879d

File tree

1 file changed

+9
-18
lines changed

1 file changed

+9
-18
lines changed

.github/workflows/blank.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: 'Get Release'
22

33
on:
4-
release:
5-
types: [created]
6-
4+
push:
5+
branches:
6+
- master
77
jobs:
88
buildx:
99
runs-on: ubuntu-latest
@@ -12,26 +12,17 @@ jobs:
1212
name: Prepare
1313
id: prepare
1414
run: |
15-
DOCKER_IMAGE=crazymax/diun
16-
DOCKER_PLATFORMS=linux/amd64,linux/arm/v6,linux/arm/v7,linux/arm64,linux/386,linux/ppc64le,linux/s390x
17-
VERSION=edge
15+
DOCKER_IMAGE=opensecurity/mobile-security-framework-mobsf
1816
if [[ $GITHUB_REF == refs/tags/* ]]; then
1917
VERSION=${GITHUB_REF#refs/tags/v}
18+
TAGS="${DOCKER_IMAGE}:v${VERSION}"
2019
fi
21-
22-
TAGS="--tag ${DOCKER_IMAGE}:${VERSION}"
2320
if [[ $VERSION =~ ^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ ]]; then
24-
TAGS="$TAGS --tag ${DOCKER_IMAGE}:latest"
21+
TAGS="${DOCKER_IMAGE}:latest"
2522
fi
26-
echo ::set-output name=docker_image::${DOCKER_IMAGE}
27-
echo ::set-output name=version::${VERSION}
28-
echo ::set-output name=buildx_args::--platform ${DOCKER_PLATFORMS} \
29-
--build-arg VERSION=${VERSION} \
30-
--build-arg BUILD_DATE=$(date -u +'%Y-%m-%dT%H:%M:%SZ') \
31-
--build-arg VCS_REF=${GITHUB_SHA::8} \
32-
${TAGS} --file ./test/Dockerfile ./test
23+
echo ::set-output name=tag::${TAGS}
3324
-
3425
name: Inspect image
3526
run: |
36-
echo ${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }}
37-
ls ${{ steps.prepare.outputs.docker_image }}:${{ steps.prepare.outputs.version }}
27+
echo ${{ steps.prepare.outputs.tag }}
28+
ls ${{ steps.prepare.outputs.tag }}

0 commit comments

Comments
 (0)