Skip to content

Commit

Permalink
Remove deploy workflow, simplify others
Browse files Browse the repository at this point in the history
For now we trigger deploys from the GitOps repo. This will be integrated
with this repository later.
  • Loading branch information
gb-beng committed Feb 20, 2024
1 parent 6b2c976 commit b0734d3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 110 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/all-branches-but-main.yml

This file was deleted.

30 changes: 12 additions & 18 deletions .github/workflows/ghcr.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
name: Build

on:
push:
- main
workflow_call:

name: Deploy to github container registry

env:
REGISTRY_FQDN: ghcr.io
REGISTRY_USERNAME: ${{ github.actor }}
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
IMAGE_NAME: ${{ github.repository }}
IMAGE_FILE: ./Dockerfile

jobs:
build-and-push-image:
runs-on: ubuntu-22.04
Expand All @@ -18,26 +13,25 @@ jobs:
packages: write

steps:
- name: Checkout repository
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Log in to the Container registry
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
registry: ${{ env.REGISTRY_FQDN }}
username: ${{ env.REGISTRY_USERNAME }}
password: ${{ env.REGISTRY_PASSWORD }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
- name: Extract image metadata
id: meta
uses: docker/metadata-action@9dc751fe249ad99385a2583ee0d084c400eee04e # v5.4.0
with:
images: ${{ env.REGISTRY_FQDN }}/${{ env.IMAGE_NAME }}
images: ghcr.io/${{ github.repository }}

- name: Build and push Docker image
- name: Build and push image
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56 # v5.1.0
with:
file: ${{ env.IMAGE_FILE }}
labels: ${{ steps.meta.outputs.labels }}
push: true
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
35 changes: 0 additions & 35 deletions .github/workflows/deploy.yml

This file was deleted.

26 changes: 0 additions & 26 deletions .github/workflows/main-branch.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/manual-deploy.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
name: Test

on:
push:
branches:
- "main"
workflow_call:

jobs:
Expand Down

0 comments on commit b0734d3

Please sign in to comment.