on: push: branches: - main schedule: - cron: '@weekly' # once per week jobs: build-docker-image: runs-on: ubuntu-latest steps: - name: Checkout code uses: actions/checkout@v2 - name: Log in to git.limbosolutions.com docker registry uses: docker/login-action@v3 with: registry: git.limbosolutions.com username: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_USERNAME }} password: ${{ secrets.GITLIMBO_DOCKER_REGISTRY_PASSWORD }} - name: Set build timestamp run: echo "BUILD_TIMESTAMP=$(date -u +'%Y-%m-%dT%H:%M:%SZ')" >> $GITHUB_ENV - name: Build and push Docker images id: push uses: docker/build-push-action@v6 with: context: ${{gitea.workspace}}/devops file: ${{gitea.workspace}}/devops/Dockerfile push: true labels: | dev.containers.timestamp=${{ env.BUILD_TIMESTAMP }} tags: git.limbosolutions.com/mylimbo/devcontainers/devops:latest