From 02d91f5706bb5953481bba2457506e4f99fb710b Mon Sep 17 00:00:00 2001 From: Pietro di Caprio Date: Sun, 18 Feb 2024 21:51:26 +0100 Subject: [PATCH] commit Containerfile on tag --- .github/workflows/release.yml | 40 +++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..13c4a69 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,40 @@ +name: Vib release + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +on: + tags: + - 'v*' + workflow_dispatch: + +env: + REGISTRY_USER: ${{ github.actor }} + REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} + +jobs: + + release: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + + - name: Rootfs + run: | + sudo apt install -y debootstrap podman + cd rootfs + sudo sh build.sh + cd .. + + - uses: vanilla-os/vib-gh-action@v0.3.2-2 + + - name: Commit Containerfile + run: | + git config --local user.email "action@github.com" + git config --local user.name "GitHub Action" + git add Containerfile + git commit -m "release: ${GITHUB_REF#refs/tags/}" + git push