diff --git a/.gitea/workflows/release.yaml b/.gitea/workflows/release.yaml index 1835af9..c9c0ec7 100644 --- a/.gitea/workflows/release.yaml +++ b/.gitea/workflows/release.yaml @@ -13,33 +13,22 @@ jobs: IMAGE_NAME: namesny-com REGISTRY: git.namesny.com steps: - - - name: Clone the repository - uses: actions/checkout@v3 - - - name: Install Buildah - run: sudo apt-get update -y && sudo apt-get install -y buildah - - - name: Buildah Action - id: build-image - uses: redhat-actions/buildah-build@v2 - with: - image: ${{ env.IMAGE_NAME }} - tags: latest ${{ gitea.sha }} - containerfiles: | - ./Dockerfile - - - name: Log in to the Container registry - uses: redhat-actions/podman-login@v1 - with: - registry: ${{ env.REGISTRY }} - username: ${{ gitea.actor }} - password: ${{ secrets.REGISTRY_TOKEN }} - - - name: Push to Container Repository - id: push-to-registry - uses: redhat-actions/push-to-registry@v2 - with: - image: ${{ steps.build-image.outputs.image }} - tags: ${{ steps.build-image.outputs.tags }} - registry: ${{ env.REGISTRY }} \ No newline at end of file + - name: Checkout + uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Login to Docker Hub + uses: docker/login-action@v3 + with: + registry: git.namesny.com + username: ${{ gitea.actor }} + password: ${{ secrets.REGISTRY_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v5 + with: + context: . + push: true + tags: | + Mathis/namesny-com:latest + Mathis/namesny-com:${{ gitea.sha }} + \ No newline at end of file