Skip to content

Commit

Permalink
Change deployment workflow to new & simpler one
Browse files Browse the repository at this point in the history
  • Loading branch information
greenw0lf committed Jul 19, 2024
1 parent 50521b4 commit 80a1d38
Showing 1 changed file with 4 additions and 32 deletions.
36 changes: 4 additions & 32 deletions .github/workflows/_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,38 +4,10 @@ on:
workflow_call:

jobs:
build-and-push-image:
runs-on: ubuntu-latest
build-push-image:
uses: beeldengeluid/gha-workflows/.github/workflows/build-push-image.yml@7f728e024f68a2d2a6a345906a3abba25b227513
secrets: inherit
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/${{ github.repository }}
tags: |
type=raw,value=edge,enable={{is_default_branch}}
type=sha
- name: Build and push Docker image
uses: docker/build-push-action@v5
with:
labels: ${{ steps.meta.outputs.labels }}
tags: ${{ steps.meta.outputs.tags }}
push: true
cache-from: type=gha
cache-to: type=gha,mode=max
id-token: write

0 comments on commit 80a1d38

Please sign in to comment.