Skip to content
name: docker-build-push-release-alpine
on:
release:
types: [released, edited]
jobs:
build:
runs-on: ubuntu-latest
steps:
-
name: Checkout repo
uses: actions/[email protected]
-
name: Get release version without v
id: release_version
uses: battila7/[email protected]
-
name: Docker login
id: docker_login
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}
-
name: Build and push image
id: docker_build
uses: docker/[email protected]
with:
push: true
file: Dockerfile.alpine
tags: 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine,3dcitydb/impexp:latest-alpine
build-args: |
IMPEXP_VERSION=${{ steps.release_version.outputs.version }}
-
name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
-
name: Run container
run: docker run -t --rm 3dcitydb/impexp:${{ steps.release_version.outputs.version-without-v }}-alpine help | grep -i -E "Usage:"