revert: remove builder workflow to automate deployments on ghcr.io

Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
This commit is contained in:
Vinayak Kulkarni 2022-09-26 12:39:01 +05:30
parent 4edc09dfc0
commit 143b5a8d80
No known key found for this signature in database
GPG key ID: 0FE8ABF8260A1552
3 changed files with 4 additions and 68 deletions

View file

@ -1,51 +0,0 @@
name: 'Setup Docker Image(s)'
on:
workflow_call:
inputs:
branch:
description: 'The branch for the workflow'
default: 'dev'
required: true
type: string
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
permissions:
contents: read
packages: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository 🎉
uses: actions/checkout@v3
- name: Set up Docker Buildx 🏗
uses: docker/setup-buildx-action@v2
with:
buildkitd-flags: --debug
- name: Log in to the Container registry 🔐
uses: docker/login-action@v2
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker 🙏🏽
id: meta
uses: docker/metadata-action@v4
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image 🦾
uses: docker/build-push-action@v3.1.1
with:
context: .
file: Dockerfile
push: true
tags: ${{ steps.meta.outputs.tags }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ inputs.branch }},${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest
labels: ${{ steps.meta.outputs.labels }}

View file

@ -7,10 +7,6 @@ permissions:
checks: write checks: write
contents: read contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true
jobs: jobs:
ci: ci:
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -49,6 +45,3 @@ jobs:
with: with:
dockerfile: Dockerfile dockerfile: Dockerfile
ignore: DL3003,DL3008 ignore: DL3003,DL3008
# - name: Run tests 🧪
# run: npm run test

View file

@ -8,6 +8,10 @@ on:
branches: branches:
- master - master
concurrency:
group: ci-${{ github.ref }}-1
cancel-in-progress: true
jobs: jobs:
extract-branch: extract-branch:
name: 'Fetch branch' name: 'Fetch branch'
@ -34,13 +38,3 @@ jobs:
needs: needs:
- extract-branch - extract-branch
uses: maptiler/tileserver-gl/.github/workflows/ct.yml@master uses: maptiler/tileserver-gl/.github/workflows/ct.yml@master
builder:
name: 'Build & Publish Docker Image(s)'
needs:
- extract-branch
- ci
- ct
if: ${{ github.event_name == 'push' }}
uses: maptiler/tileserver-gl/.github/workflows/builder.yml@master
with:
branch: ${{ needs.extract-branch.outputs.current_branch }}