Skip to content

Commit 5b2681b

Browse files
committed
reworking workflows
1 parent 15342a8 commit 5b2681b

File tree

4 files changed

+16
-22
lines changed

4 files changed

+16
-22
lines changed

.github/workflows/dependabot.yml

-7
This file was deleted.

.github/workflows/docker-image-apache.yml

+4-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Docker Image CI (apache)
33
on:
44
# Controls when the workflow will run
55
push:
6-
branches: [ main ]
76
tags:
87
- 'v*.*.*'
98

@@ -17,18 +16,18 @@ jobs:
1716
steps:
1817
# Get the repository's code
1918
- name: Checkout
20-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2120
# https://github.com/docker/setup-qemu-action
2221
- name: Set up QEMU
23-
uses: docker/setup-qemu-action@v1
22+
uses: docker/setup-qemu-action@v2
2423
# https://github.com/docker/setup-buildx-action
2524
- name: Set up Docker Buildx
2625
id: buildx
27-
uses: docker/setup-buildx-action@v1
26+
uses: docker/setup-buildx-action@v2
2827
# Push to Docker Hub
2928
- name: Login to Docker Hub
3029
if: github.event_name != 'pull_request'
31-
uses: docker/login-action@v1
30+
uses: docker/login-action@v2
3231
with:
3332
username: ${{ secrets.DOCKER_USERNAME }}
3433
password: ${{ secrets.DOCKER_PASSWORD }}

.github/workflows/docker-image-fpm-alpine.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Docker Image CI (alpine)
33
on:
44
# Controls when the workflow will run
55
push:
6-
branches: [ main ]
76
tags:
87
- 'v*.*.*'
98

@@ -17,18 +16,18 @@ jobs:
1716
steps:
1817
# Get the repository's code
1918
- name: Checkout
20-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2120
# https://github.com/docker/setup-qemu-action
2221
- name: Set up QEMU
23-
uses: docker/setup-qemu-action@v1
22+
uses: docker/setup-qemu-action@v2
2423
# https://github.com/docker/setup-buildx-action
2524
- name: Set up Docker Buildx
2625
id: buildx
27-
uses: docker/setup-buildx-action@v1
26+
uses: docker/setup-buildx-action@v2
2827
# Push to Docker Hub
2928
- name: Login to Docker Hub
3029
if: github.event_name != 'pull_request'
31-
uses: docker/login-action@v1
30+
uses: docker/login-action@v2
3231
with:
3332
username: ${{ secrets.DOCKER_USERNAME }}
3433
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -46,6 +45,8 @@ jobs:
4645
type=semver,pattern={{version}}-fpm-alpine
4746
type=semver,pattern={{major}}.{{minor}}-fpm-alpine
4847
type=semver,pattern={{major}}-fpm-alpine,enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
48+
flavor: |
49+
latest=false
4950
5051
- name: Build and push
5152
uses: docker/build-push-action@v3

.github/workflows/docker-image-fpm.yml

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ name: Docker Image CI (fpm)
33
on:
44
# Controls when the workflow will run
55
push:
6-
branches: [ main ]
76
tags:
87
- 'v*.*.*'
98

@@ -17,18 +16,18 @@ jobs:
1716
steps:
1817
# Get the repository's code
1918
- name: Checkout
20-
uses: actions/checkout@v2
19+
uses: actions/checkout@v3
2120
# https://github.com/docker/setup-qemu-action
2221
- name: Set up QEMU
23-
uses: docker/setup-qemu-action@v1
22+
uses: docker/setup-qemu-action@v2
2423
# https://github.com/docker/setup-buildx-action
2524
- name: Set up Docker Buildx
2625
id: buildx
27-
uses: docker/setup-buildx-action@v1
26+
uses: docker/setup-buildx-action@v2
2827
# Push to Docker Hub
2928
- name: Login to Docker Hub
3029
if: github.event_name != 'pull_request'
31-
uses: docker/login-action@v1
30+
uses: docker/login-action@v2
3231
with:
3332
username: ${{ secrets.DOCKER_USERNAME }}
3433
password: ${{ secrets.DOCKER_PASSWORD }}
@@ -46,6 +45,8 @@ jobs:
4645
type=semver,pattern={{version}}-fpm
4746
type=semver,pattern={{major}}.{{minor}}-fpm
4847
type=semver,pattern={{major}}-fpm,enable=${{ !startsWith(github.ref, 'refs/tags/v0.') }}
48+
flavor: |
49+
latest=false
4950
5051
- name: Build and push
5152
uses: docker/build-push-action@v3

0 commit comments

Comments
 (0)