From 45e14d2f071b223d14748c58ed7831eee5afbb06 Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Tue, 10 Oct 2023 20:57:49 +0200 Subject: [PATCH] migrate to Gitea actions --- .gitea/workflows/oci-image.yml | 13 ++++++++++++ .github/workflows/docker-image.yml | 32 ------------------------------ 2 files changed, 13 insertions(+), 32 deletions(-) create mode 100644 .gitea/workflows/oci-image.yml delete mode 100644 .github/workflows/docker-image.yml diff --git a/.gitea/workflows/oci-image.yml b/.gitea/workflows/oci-image.yml new file mode 100644 index 0000000..92581a6 --- /dev/null +++ b/.gitea/workflows/oci-image.yml @@ -0,0 +1,13 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is testing out Gitea Actions 🚀 +on: [push] + +jobs: + Explore-Gitea-Actions: + runs-on: linux_amd64 + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - run: podman build -t gitea.maciej.cloud/packages/neovim . + - run: podman login -u "${{ secrets.PACKAGES_USERNAME }}" -p "${{ secrets.PACKAGES_PASSWD }}" gitea.maciej.cloud + - run: podman push gitea.maciej.cloud/packages/neovim diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml deleted file mode 100644 index 9dca699..0000000 --- a/.github/workflows/docker-image.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Docker Image CI - -on: - push: - branches: [ "main" ] - schedule: - - cron: '30 4 5,15,25 * *' - -jobs: - - build: - - runs-on: ubuntu-latest - permissions: - packages: write - contents: read - - steps: - - uses: actions/checkout@v3 - - name: Build the Docker image - run: docker build . --file Dockerfile --tag neovim:latest - - name: Log in to registry - run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u $ --password-stdin - - name: Push image - run: | - IMAGE_NAME="neovim" - IMAGE_ID="ghcr.io/szwendacz99/$IMAGE_NAME" - TAG=$(date +"%Y-%m-%d") - docker tag $IMAGE_NAME:latest $IMAGE_ID:latest - docker push $IMAGE_ID:latest - docker tag $IMAGE_ID:latest $IMAGE_ID:$TAG - docker push $IMAGE_ID:$TAG