Browse Source

fix build and test

add workflow_dispatch


fix
pull/10/head
Daniel Gibbs 2 years ago
parent
commit
979daf17ad
  1. 13
      .github/workflows/docker-publish.yml

13
.github/workflows/docker-publish.yml

@ -1,6 +1,7 @@
name: Docker Publish
on:
workflow_dispatch:
push:
branches: ["main", "master"]
paths:
@ -19,9 +20,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build
run: docker build -t gameservermanagers/steamcmd:ubuntu-22.04 .
run: docker build -t gameservermanagers/steamcmd:ubuntu-22.04 -f ./Dockerfile.ubuntu-2204 .
- name: Test
run: docker run --rm gameservermanagers/steamcmd:ubuntu-22.04
run: docker run --rm gameservermanagers/steamcmd:ubuntu-22.04 steamcmd +quit
- name: Login to DockerHub
uses: docker/[email protected]
with:
@ -58,9 +59,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build
run: docker build -t gameservermanagers/steamcmd:ubuntu-20.04 .
run: docker build -t gameservermanagers/steamcmd:ubuntu-20.04 -f ./Dockerfile.ubuntu-2004 .
- name: Test
run: docker run --rm gameservermanagers/steamcmd:ubuntu-20.04
run: docker run --rm gameservermanagers/steamcmd:ubuntu-20.04 steamcmd +quit
- name: Login to DockerHub
uses: docker/[email protected]
with:
@ -93,9 +94,9 @@ jobs:
- name: Set up Docker Buildx
uses: docker/[email protected]
- name: Build
run: docker build -t gameservermanagers/steamcmd:ubuntu-18.04 .
run: docker build -t gameservermanagers/steamcmd:ubuntu-18.04 -f ./Dockerfile.ubuntu-1804 .
- name: Test
run: docker run --rm gameservermanagers/steamcmd:ubuntu-18.04
run: docker run --rm gameservermanagers/steamcmd:ubuntu-18.04 steamcmd +quit
- name: Login to DockerHub
uses: docker/[email protected]
with:

Loading…
Cancel
Save