Browse Source

automation

pull/1/head
Daniel Gibbs 3 years ago
parent
commit
d2f2645366
  1. 24
      .dockerignore
  2. 13
      .editorconfig
  3. 9
      .github/dependabot.yml
  4. 47
      .github/workflows/docker-publish.yml
  5. 23
      .gitignore

24
.dockerignore

@ -0,0 +1,24 @@
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/bin
**/charts
**/docker-compose*
**/compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
README.md

13
.editorconfig

@ -0,0 +1,13 @@
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
# Atom: Please assure your Atom's config setting Tab Type is set to auto, otherwise Atom-EditorConfig may not work as expected. Also disable whitespace package.
# http://editorconfig.org/
root = true
[*]
charset = utf-8
indent_style = tab
indent_size = 4
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true

9
.github/dependabot.yml

@ -0,0 +1,9 @@
# Set update schedule for GitHub Actions
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every weekday
interval: "daily"

47
.github/workflows/docker-publish.yml

@ -0,0 +1,47 @@
name: ci
on:
push:
branches:
- 'main'
schedule:
- cron: '0 0 * * *'
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v3
-
name: Set up QEMU
uses: docker/setup-qemu-action@v2
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.0.0
-
name: Login to DockerHub
uses: docker/login-action@v2.0.0
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
-
name: Login to GitHub Container Registry
uses: docker/login-action@v2.0.0
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v3.1.1
with:
context: .
platforms: linux/amd64
push: true
tags: |
gameservermanagers/steamcmd:latest
gameservermanagers/steamcmd:ubuntu-22.04
ghcr.io/gameservermanagers/steamcmd:latest
ghcr.io/gameservermanagers/steamcmd:ubuntu-22.04

23
.gitignore

@ -0,0 +1,23 @@
*~
.vagrant*
bin
docker/docker
.*.swp
a.out
*.orig
build_src
.flymake*
.idea
.DS_Store
docs/_build
docs/_static
docs/_templates
.gopath/
.dotcloud
*.test
bundles/
.hg/
.git/
vendor/pkg/
pyenv
Vagrantfile
Loading…
Cancel
Save