Skip to content

BUILD AND PUBLISH TAG #31

BUILD AND PUBLISH TAG

BUILD AND PUBLISH TAG #31

name: BUILD AND PUBLISH TAG
on:
workflow_dispatch:
inputs:
version:
description: "Flutter version from https://github.com/flutter/flutter/tags"
required: true
jobs:
build_and_push:
name: "Build and push"
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: 🚂 Get latest code
uses: actions/checkout@v2
- name: ✨ Log into registry
run: echo "${{ secrets.DOCKER_LOGIN_PASSWORD }}" | docker login -u ${{ secrets.DOCKER_LOGIN_USERNAME }} --password-stdin
- name: 🐈 Pull alpine:latest
run: docker pull alpine:latest
- name: 🏗️ Build images
run: make build VERSION="${{ github.event.inputs.version }}"
- name: 🔥 Push images to registry
run: make push VERSION="${{ github.event.inputs.version }}"
- name: 🗑️ Prune images
run: make prune