commit 42cd438fc5d8f8b21fb8039757c4dc6b4f0dfd4e Author: William Miceli Date: Sun Feb 4 19:29:43 2024 -0500 Added notes and Drone config diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..5b338ad --- /dev/null +++ b/.drone.yml @@ -0,0 +1,57 @@ +kind: pipeline +type: kubernetes +name: default + +trigger: + event: + - push + +steps: +- name: build-docker-image + image: docker.io/library/docker:25.02-dind-alpine3.19 + commands: + - docker build \ + -t william/satisfactory-server:latest \ + -t william/satisfactory-server:${DRONE_BUILD_NUMBER} \ + -t william/satisfactory-server:${DRONE_COMMIT_SHA:0:7} \ + ./ + # -t williammiceli/satisfactory-server:latest \ + # -t williammiceli/satisfactory-server:${DRONE_BUILD_NUMBER} \ + # -t williammiceli/satisfactory-server:${DRONE_COMMIT_SHA:0:7} \ + volumes: + - name: artifacts + path: / + +- name: gitea-push + image: docker.io/library/docker:25.02-dind-alpine3.19 + commands: + - echo $GITEA_TOKEN | docker login git.williammiceli.systems --username $GITEA_USERNAME --password-stdin + - docker push git.williammiceli.systems/william/satisfactory-server:latest + - docker push git.williammiceli.systems/william/satisfactory-server:${DRONE_BUILD_NUMBER} + - docker push git.williammiceli.systems/william/satisfactory-server:${DRONE_COMMIT_SHA:0:7} + environment: + GITEA_USERNAME: + from_secret: GITEA_USERNAME + GITEA_TOKEN: + from_secret: GITEA_TOKEN + volumes: + - name: artifacts + path: / + +# - name: docker-hub-push +# image: docker.io/library/docker:25.02-dind-alpine3.19 +# commands: +# - echo $DOCKER_TOKEN | docker login --username $DOCKER_USERNAME --password-stdin +# - docker push williammiceli/satisfactory-server:latest +# environment: +# DOCKER_USERNAME: +# from_secret: DOCKER_USERNAME +# DOCKER_TOKEN: +# from_secret: DOCKER_TOKEN +# volumes: +# - name: artifacts +# path: / + +volumes: +- name: artifacts + temp: {} \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..b517ed6 --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +[![Build Status](https://drone.williammiceli.systems/api/badges/William/Docker-SatisfactoryServer/status.svg)](https://drone.williammiceli.systems/William/Docker-SatisfactoryServer) + +# Useful References + +* https://openai.com/chatgpt +* https://github.com/steamcmd/docker +* https://developer.valvesoftware.com/wiki/SteamCMD#Ubuntu \ No newline at end of file