Skip to content

Commit 00f3016

Browse files
chore: updated github workflow
1 parent c67195f commit 00f3016

File tree

2 files changed

+80
-80
lines changed

2 files changed

+80
-80
lines changed
+34-34
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
1-
name: ci
2-
3-
on:
4-
push:
5-
branches:
6-
- 'master'
7-
8-
jobs:
9-
docker:
10-
runs-on: ubuntu-latest
11-
steps:
12-
-
13-
name: Checkout
14-
uses: actions/checkout@v2
15-
-
16-
name: Set up QEMU
17-
uses: docker/setup-qemu-action@v1
18-
-
19-
name: Set up Docker Buildx
20-
uses: docker/setup-buildx-action@v1
21-
-
22-
name: Login to DockerHub
23-
uses: docker/login-action@v1
24-
with:
25-
username: ${{ secrets.DOCKERHUB_USERNAME }}
26-
password: ${{ secrets.DOCKERHUB_TOKEN }}
27-
-
28-
name: Build and push
29-
uses: docker/build-push-action@v2
30-
with:
31-
context: .
32-
push: true
33-
platforms: linux/amd64
34-
tags: davikingcode/nginx-php-fpm:latest
1+
#name: ci
2+
#
3+
#on:
4+
# push:
5+
# branches:
6+
# - 'master'
7+
#
8+
#jobs:
9+
# docker:
10+
# runs-on: ubuntu-latest
11+
# steps:
12+
# -
13+
# name: Checkout
14+
# uses: actions/checkout@v2
15+
# -
16+
# name: Set up QEMU
17+
# uses: docker/setup-qemu-action@v1
18+
# -
19+
# name: Set up Docker Buildx
20+
# uses: docker/setup-buildx-action@v1
21+
# -
22+
# name: Login to DockerHub
23+
# uses: docker/login-action@v1
24+
# with:
25+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
26+
# password: ${{ secrets.DOCKERHUB_TOKEN }}
27+
# -
28+
# name: Build and push
29+
# uses: docker/build-push-action@v2
30+
# with:
31+
# context: .
32+
# push: true
33+
# platforms: linux/amd64
34+
# tags: davikingcode/nginx-php-fpm:latest
+46-46
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
name: ci
2-
3-
on:
4-
push:
5-
tags:
6-
- 'v*.*.*'
7-
jobs:
8-
test:
9-
runs-on: ubuntu-latest
10-
steps:
11-
-
12-
name: Checkout
13-
uses: actions/checkout@v2
14-
-
15-
name: Set up QEMU
16-
uses: docker/setup-qemu-action@v1
17-
-
18-
name: Set up Docker Buildx
19-
uses: docker/setup-buildx-action@v1
20-
-
21-
name: Login to DockerHub
22-
uses: docker/login-action@v1
23-
with:
24-
username: ${{ secrets.DOCKERHUB_USERNAME }}
25-
password: ${{ secrets.DOCKERHUB_TOKEN }}
26-
-
27-
name: Set release version output
28-
id: vars
29-
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
30-
-
31-
name: Check release version output
32-
env:
33-
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
34-
run: |
35-
echo $RELEASE_VERSION
36-
echo ${{ steps.vars.outputs.tag }}
37-
-
38-
name: Build and push
39-
env:
40-
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
41-
uses: docker/build-push-action@v2
42-
with:
43-
context: .
44-
push: true
45-
platforms: linux/amd64
46-
tags: davikingcode/nginx-php-fpm:${{ env.RELEASE_VERSION }}
1+
#name: ci
2+
#
3+
#on:
4+
# push:
5+
# tags:
6+
# - 'v*.*.*'
7+
#jobs:
8+
# test:
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# -
12+
# name: Checkout
13+
# uses: actions/checkout@v2
14+
# -
15+
# name: Set up QEMU
16+
# uses: docker/setup-qemu-action@v1
17+
# -
18+
# name: Set up Docker Buildx
19+
# uses: docker/setup-buildx-action@v1
20+
# -
21+
# name: Login to DockerHub
22+
# uses: docker/login-action@v1
23+
# with:
24+
# username: ${{ secrets.DOCKERHUB_USERNAME }}
25+
# password: ${{ secrets.DOCKERHUB_TOKEN }}
26+
# -
27+
# name: Set release version output
28+
# id: vars
29+
# run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
30+
# -
31+
# name: Check release version output
32+
# env:
33+
# RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
34+
# run: |
35+
# echo $RELEASE_VERSION
36+
# echo ${{ steps.vars.outputs.tag }}
37+
# -
38+
# name: Build and push
39+
# env:
40+
# RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
41+
# uses: docker/build-push-action@v2
42+
# with:
43+
# context: .
44+
# push: true
45+
# platforms: linux/amd64
46+
# tags: davikingcode/nginx-php-fpm:${{ env.RELEASE_VERSION }}

0 commit comments

Comments
 (0)