release #77
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: release | |
on: | |
create: | |
tags: | |
- '**' | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set Tag | |
run: | | |
TAG="${GITHUB_REF#refs/*/}" | |
echo "TAG=${TAG}" >> $GITHUB_ENV | |
echo "RELEASE_TAG=${TAG}" >> $GITHUB_ENV | |
- name: Print Tag info | |
run: | | |
echo "RELEASE TAG: ${RELEASE_TAG}" | |
echo "${RELEASE_TAG}" > ${{ github.workspace }}/tag.txt | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
with: | |
platforms: all | |
- name: Set up Docker Buildx | |
id: buildx | |
uses: docker/setup-buildx-action@v1 | |
with: | |
version: latest | |
- name: Login to Docker Hub | |
uses: docker/login-action@v1 | |
with: | |
username: ${{ secrets.DNAME }} | |
password: ${{ secrets.DPASS }} | |
- name: Build and push | |
uses: docker/build-push-action@v2 | |
with: | |
push: true | |
file: Dockerfile | |
platforms: linux/amd64,linux/arm64 | |
tags: litmuschaos/py-runner:${{ env.RELEASE_TAG }},litmuschaos/py-runner:latest |