Skip to content

Commit

Permalink
FIX:Update Docker workflows to publish Docker Image
Browse files Browse the repository at this point in the history
  • Loading branch information
fvergaracl committed Feb 8, 2024
1 parent 5710161 commit 9c4f38c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
18 changes: 8 additions & 10 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
name: Publish Docker ALPHA Image
name: Publish Docker Image

on:
workflow_dispatch:
push:
tags:
- "*"
branches:
- main
pull_request:
branches:
- main

jobs:
docker:
runs-on: ubuntu-latest
if: github.ref_name != 'main'
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"
- name: Checkout
uses: actions/checkout@v3

Expand All @@ -34,6 +31,7 @@ jobs:
file: Dockerfile
push: true
tags: |
fvergaracl/game:alpha
fvergaracl/game:alpha-${{ github.run_number }}
fvergaracl/game:latest
fvergaracl/game:${{ github.ref_name }}
fvergaracl/game:${{ github.ref_name }}.${{ steps.date.outputs.date }}
target: prod
10 changes: 6 additions & 4 deletions .github/workflows/docker_alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ on:
jobs:
docker:
runs-on: ubuntu-latest
if: github.ref_name != 'main'
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y%m%d')"

- name: Checkout
uses: actions/checkout@v3

Expand All @@ -35,6 +38,5 @@ jobs:
file: Dockerfile
push: true
tags: |
fvergaracl/game:latest
fvergaracl/game:${{ github.ref_name }}
fvergaracl/game:${{ github.ref_name }}-${{ github.run_number }}
fvergaracl/game:alpha
fvergaracl/game:alpha.${{ steps.date.outputs.date }}

0 comments on commit 9c4f38c

Please sign in to comment.