diff --git a/.gitea/workflows/build.yml b/.gitea/workflows/build.yml new file mode 100644 index 0000000..4b24bd6 --- /dev/null +++ b/.gitea/workflows/build.yml @@ -0,0 +1,43 @@ +on: + workflow_dispatch: + inputs: + tag: + description: 'Tag to build and push' + required: false + default: 'latest' + push: + tags: + - "v*" + +name: 🏗️✨ Build Workflow + +jobs: + Build: + name: 🖥️ 🔨 Build + runs-on: ubuntu-latest + steps: + - name: 📖 🔍 Checkout Repository Code + uses: actions/checkout@v4 + with: + fetch-depth: 1 + submodules: 'true' + + - name: 🔑 🔐 Login to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USERNAME }} + password: ${{ secrets.DOCKER_PASSWORD }} + + - name: 🏗️ 🔧 Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + + - name: 🐳 🔨 Build Container + uses: docker/build-push-action@v6 + with: + push: true + sbom: true + provenance: true + platforms: linux/arm64,linux/amd64 + context: . + dockerfile: Dockerfile + tags: siteworxpro/top-wallpaper:${{ gitea.ref_name }} \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index 4f24eee..0122022 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM siteworxpro/golang:1.24.0 AS build +FROM siteworxpro/golang:1.24.3 AS build WORKDIR /app diff --git a/docker-compose.yml b/docker-compose.yml index 5d75e41..7e23ac3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -40,7 +40,7 @@ services: - "traefik.http.routers.api.rule=Host(`localhost`) || Host(`127.0.0.1`)" - "traefik.http.routers.api.tls=true" - "traefik.http.services.api.loadbalancer.server.port=8080" - image: siteworxpro/top-wallpaper:v1.3.0 + image: siteworxpro/top-wallpaper:v1.3.1 container_name: top-wallpaper environment: REDIS_URL: "redis" diff --git a/go.mod b/go.mod index c27c7e6..022db5f 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/siteworxpro/top-wallpaper -go 1.24.0 +go 1.24.3 require ( github.com/labstack/echo/v4 v4.13.3