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 name: Docker Publish
on: on:
workflow_dispatch:
push: push:
branches: ["main", "master"] branches: ["main", "master"]
paths: paths:
@ -19,9 +20,9 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/[email protected] uses: docker/[email protected]
- name: Build - 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 - 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 - name: Login to DockerHub
uses: docker/[email protected] uses: docker/[email protected]
with: with:
@ -58,9 +59,9 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/[email protected] uses: docker/[email protected]
- name: Build - 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 - 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 - name: Login to DockerHub
uses: docker/[email protected] uses: docker/[email protected]
with: with:
@ -93,9 +94,9 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/[email protected] uses: docker/[email protected]
- name: Build - 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 - 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 - name: Login to DockerHub
uses: docker/[email protected] uses: docker/[email protected]
with: with:

Loading…
Cancel
Save