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:
parent
4edc09dfc0
commit
143b5a8d80
3 changed files with 4 additions and 68 deletions
51
.github/workflows/builder.yml
vendored
51
.github/workflows/builder.yml
vendored
|
|
@ -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 }}
|
||||
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
|
|
@ -7,10 +7,6 @@ permissions:
|
|||
checks: write
|
||||
contents: read
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
ci:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -49,6 +45,3 @@ jobs:
|
|||
with:
|
||||
dockerfile: Dockerfile
|
||||
ignore: DL3003,DL3008
|
||||
|
||||
# - name: Run tests 🧪
|
||||
# run: npm run test
|
||||
|
|
|
|||
14
.github/workflows/pipeline.yml
vendored
14
.github/workflows/pipeline.yml
vendored
|
|
@ -8,6 +8,10 @@ on:
|
|||
branches:
|
||||
- master
|
||||
|
||||
concurrency:
|
||||
group: ci-${{ github.ref }}-1
|
||||
cancel-in-progress: true
|
||||
|
||||
jobs:
|
||||
extract-branch:
|
||||
name: 'Fetch branch'
|
||||
|
|
@ -34,13 +38,3 @@ jobs:
|
|||
needs:
|
||||
- extract-branch
|
||||
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 }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue