Skip to content

Commit

Permalink
chore: updated github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
curious-mike-dvc committed Oct 23, 2024
1 parent c67195f commit 00f3016
Show file tree
Hide file tree
Showing 2 changed files with 80 additions and 80 deletions.
68 changes: 34 additions & 34 deletions .github/workflows/build-and-push-master.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,34 @@
name: ci

on:
push:
branches:
- 'master'

jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: linux/amd64
tags: davikingcode/nginx-php-fpm:latest
#name: ci
#
#on:
# push:
# branches:
# - 'master'
#
#jobs:
# docker:
# runs-on: ubuntu-latest
# steps:
# -
# name: Checkout
# uses: actions/checkout@v2
# -
# name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# -
# name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# -
# name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# -
# name: Build and push
# uses: docker/build-push-action@v2
# with:
# context: .
# push: true
# platforms: linux/amd64
# tags: davikingcode/nginx-php-fpm:latest
92 changes: 46 additions & 46 deletions .github/workflows/build-and-push-tag.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,46 @@
name: ci

on:
push:
tags:
- 'v*.*.*'
jobs:
test:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Set release version output
id: vars
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
-
name: Check release version output
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
run: |
echo $RELEASE_VERSION
echo ${{ steps.vars.outputs.tag }}
-
name: Build and push
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
uses: docker/build-push-action@v2
with:
context: .
push: true
platforms: linux/amd64
tags: davikingcode/nginx-php-fpm:${{ env.RELEASE_VERSION }}
#name: ci
#
#on:
# push:
# tags:
# - 'v*.*.*'
#jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# -
# name: Checkout
# uses: actions/checkout@v2
# -
# name: Set up QEMU
# uses: docker/setup-qemu-action@v1
# -
# name: Set up Docker Buildx
# uses: docker/setup-buildx-action@v1
# -
# name: Login to DockerHub
# uses: docker/login-action@v1
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
# -
# name: Set release version output
# id: vars
# run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
# -
# name: Check release version output
# env:
# RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
# run: |
# echo $RELEASE_VERSION
# echo ${{ steps.vars.outputs.tag }}
# -
# name: Build and push
# env:
# RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
# uses: docker/build-push-action@v2
# with:
# context: .
# push: true
# platforms: linux/amd64
# tags: davikingcode/nginx-php-fpm:${{ env.RELEASE_VERSION }}

0 comments on commit 00f3016

Please sign in to comment.