fixed ci
This commit is contained in:
parent
10c9e119ca
commit
57df071654
2 changed files with 113 additions and 3 deletions
20
.github/workflows/docker-image.yml
vendored
20
.github/workflows/docker-image.yml
vendored
|
|
@ -1,5 +1,5 @@
|
|||
name: Docker Image CI
|
||||
|
||||
description: build insurgency-sandstorm
|
||||
on:
|
||||
push:
|
||||
branches: [ master ]
|
||||
|
|
@ -12,17 +12,31 @@ jobs:
|
|||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Check new version
|
||||
id: status
|
||||
run: |
|
||||
#!/bin/bash
|
||||
LOCALAPPVER=$(cat sandstorm.version)
|
||||
REMOTEAPPVER=$(curl -s -X GET 'https://api.steamcmd.net/v1/info/581330' | jq -r -e '.data."581330".depots."581333".manifests.public')
|
||||
if [[ "$LOCALAPPVER" != "$REMOTEAPPVER" ]]; then
|
||||
echo "$REMOTEAPPVER" > sandstorm.version
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
shell: bash
|
||||
-
|
||||
name: Login to DockerHub
|
||||
if: steps.status.outcome == 'success'
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
-
|
||||
name: Build and push
|
||||
if: steps.status.outcome == 'success'
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: andrewmhub/insurgency-sandstorm:latest
|
||||
|
||||
tags: andrewmhub/insurgency-sandstorm:latest
|
||||
96
.gitignore
vendored
Normal file
96
.gitignore
vendored
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
### Scala template
|
||||
*.class
|
||||
*.log
|
||||
|
||||
# sbt specific
|
||||
.cache
|
||||
.history
|
||||
.lib/
|
||||
dist/*
|
||||
target/
|
||||
lib_managed/
|
||||
src_managed/
|
||||
project/boot/
|
||||
project/plugins/project/
|
||||
|
||||
# Scala-IDE specific
|
||||
.scala_dependencies
|
||||
.worksheet
|
||||
### JetBrains template
|
||||
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio
|
||||
|
||||
*.iml
|
||||
|
||||
## Directory-based project format:
|
||||
.idea/
|
||||
# if you remove the above rule, at least ignore the following:
|
||||
|
||||
# User-specific stuff:
|
||||
# .idea/workspace.xml
|
||||
# .idea/tasks.xml
|
||||
# .idea/dictionaries
|
||||
|
||||
# Sensitive or high-churn files:
|
||||
# .idea/dataSources.ids
|
||||
# .idea/dataSources.xml
|
||||
# .idea/sqlDataSources.xml
|
||||
# .idea/dynamic.xml
|
||||
# .idea/uiDesigner.xml
|
||||
|
||||
# Gradle:
|
||||
# .idea/gradle.xml
|
||||
# .idea/libraries
|
||||
|
||||
# Mongo Explorer plugin:
|
||||
# .idea/mongoSettings.xml
|
||||
|
||||
## File-based project format:
|
||||
*.ipr
|
||||
*.iws
|
||||
|
||||
## Plugin-specific files:
|
||||
|
||||
# IntelliJ
|
||||
/out/
|
||||
|
||||
# mpeltonen/sbt-idea plugin
|
||||
.idea_modules/
|
||||
|
||||
# JIRA plugin
|
||||
atlassian-ide-plugin.xml
|
||||
|
||||
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||
com_crashlytics_export_strings.xml
|
||||
crashlytics.properties
|
||||
crashlytics-build.properties
|
||||
### Java template
|
||||
*.class
|
||||
|
||||
# Mobile Tools for Java (J2ME)
|
||||
.mtj.tmp/
|
||||
|
||||
# Package Files #
|
||||
*.jar
|
||||
*.war
|
||||
*.ear
|
||||
|
||||
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
|
||||
hs_err_pid*
|
||||
### Linux template
|
||||
*~
|
||||
|
||||
# KDE directory preferences
|
||||
.directory
|
||||
|
||||
# Linux trash folder which might appear on any partition or disk
|
||||
.Trash-*
|
||||
|
||||
# Created by .ignore support plugin (hsz.mobi)
|
||||
.scalafmt.conf
|
||||
|
||||
#vscode settings
|
||||
.vscode/
|
||||
|
||||
app
|
||||
db
|
||||
node_modules
|
||||
Loading…
Reference in a new issue