Skip to content

Create Release

Create Release #2

Workflow file for this run

name: Create Release
on:
push:
tags:
- 'v*'
jobs:
build_release_x64:
name: Build Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build
run: |
docker run -d --name alpine -v $(pwd):/workspace -w /workspace crystallang/crystal:latest-alpine tail -f /dev/null
docker exec alpine shards install --without-development
docker exec alpine crystal build src/velero-notifications.cr --release --static
- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
push: true
tags: vitobotta/velero-backup-notification:${{ github.ref_name }}