Skip to content

Build and Push Client Docker image #14

Build and Push Client Docker image

Build and Push Client Docker image #14

Workflow file for this run

name: Build and Push Client Docker image
on:
create:
tags:
- '*'
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out the code
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to Docker Hub
uses: docker/[email protected]
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
- name: Get the version
id: get_version
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
- name: Build and push Docker image
uses: docker/[email protected]
with:
context: .
file: Dockerfile
push: true
tags:
datamini/asktable-secure-tunnel:${{ env.VERSION }},datamini/asktable-secure-tunnel:latest
platforms: linux/amd64,linux/arm64,linux/arm/v7