From 8e232e04f86ccacad72651f51b6a289e72190cd1 Mon Sep 17 00:00:00 2001 From: Jan Baudisch Date: Fri, 26 Apr 2024 15:07:50 +0200 Subject: [PATCH] feat(ci): add container workflow --- .github/workflows/Container.yml | 40 +++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/Container.yml diff --git a/.github/workflows/Container.yml b/.github/workflows/Container.yml new file mode 100644 index 0000000..2d05ae5 --- /dev/null +++ b/.github/workflows/Container.yml @@ -0,0 +1,40 @@ +name: Container + +on: + - push + +env: + REGISTRY: ghcr.io/softvare-group + IMAGE_NAME: ddnnife + +jobs: + Build: + 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: . + file: Containerfile + push: true + tags: ${{ steps.meta.outputs.tags }} + labels: ${{ steps.meta.outputs.labels }}