BUILD AND PUBLISH TAG #31
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: 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 |