diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml index 1fe285e..e1dc9b9 100644 --- a/.gitea/workflows/build.yaml +++ b/.gitea/workflows/build.yaml @@ -6,11 +6,22 @@ jobs: Explore-Gitea-Actions: runs-on: ubuntu-latest steps: + - name: Install buildah + run: apt update && apt install -y buildah - name: Check out repository code uses: actions/checkout@v4 - - run: echo "💡 The ${{ gitea.repository }} repository has been cloned to the runner." - - run: echo "🖥️ The workflow is now ready to test your code on the runner." - - name: List files in the repository - run: | - ls ${{ gitea.workspace }} - - run: echo "🍏 This job's status is ${{ job.status }}." + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build and push + uses: docker/build-push-action@v6 + with: + push: true + tags: evanespen/blog:latest + # - name: Build image + # run: buildah build -f Dockerfile -t blog + # - name: Log in to registry + # uses: docker/login-action@v3 + # with: + # registry: ${{ env.GITEA_DOMAIN }} + # username: ${{ env.GITEA_REGISTRY_USER }} + # password: ${{ secrets.CONTAINER_REGISTRY_TOKEN }}