Jack 59df0f4819
Some checks failed
Build and push image / Build (push) Failing after 41s
hrm
2023-09-27 19:01:42 +01:00

23 lines
1.1 KiB
YAML

name: Build and push image
on:
push:
branches: [main]
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Install
run: curl -fsSL get.docker.com | bash
- name: Clone
run: git clone https://git.tgj.services/thatguyjack/game-server-docker.git .
- name: Login
run: echo "${{ secrets.DOCKERHUB_TOKEN }}" | docker login git.tgj.services -u thatguyjack --password-stdin
- name: Buildx Container
run: docker buildx create --name buildx --driver=docker-container
- name: Steamcmd
run: apt install lib32gcc-s1 steamcmd -y && mkdir /accserver && /usr/games/steamcmd +@sSteamCmdForcePlatformType windows +force_install_dir ~/accserver +login jacksserver292 "${{ secrets.STEAMPASSWORD }}" +app_update 1430110 validate +quit
- name: Build ACC-web
run: docker buildx build --builder=buildx --platform=linux/amd64 ./acc-web -t git.tgj.services/thatguyjack/acc-web:latest --push
#run: docker buildx build --builder=buildx --platform=linux/amd64,linux/arm64 ./ACC -t git.tgj.services/thatguyjack/acc:latest --push