Skip to content

Commit

Permalink
feat(ci): add container workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
uulm-janbaudisch committed Apr 26, 2024
1 parent 5c78320 commit 4f820b1
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/Container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Container

on:
- push

env:
REGISTRY: ghcr.io/SoftVarE
IMAGE_NAME: ddnnife

jobs:
Format:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup
uses: docker/setup-buildx-action@v3

- name: Login
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build & push
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 4f820b1

Please sign in to comment.