Skip to content

Commit

Permalink
Merge pull request #15 from mhzawadi/dev
Browse files Browse the repository at this point in the history
Alpine v3.17 and Github actions
  • Loading branch information
mhzawadi authored Jan 26, 2023
2 parents 8295920 + 9895e04 commit a7237dd
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 40 deletions.
20 changes: 9 additions & 11 deletions .github/workflows/image-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: install buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image
run: |
docker buildx build --push \
--tag mhzawadi/phpmyadmin:latest \
--platform linux/amd64,linux/arm/v7,linux/arm64 .
uses: docker/build-push-action@v3
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: mhzawadi/phpmyadmin:latest
28 changes: 12 additions & 16 deletions .github/workflows/image-test.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
name: build dev image
name: build our image for dev

on:
workflow_dispatch:
push:
branches-ignore: master
schedule:
# * is a special character in YAML so you have to quote this string
- cron: '5 3 * * 1'
branches: dev

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: install buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image
run: |
docker buildx build --push \
--tag mhzawadi/phpmyadmin:dev \
--platform linux/amd64,linux/arm/v7,linux/arm64 .
uses: docker/build-push-action@v3
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: mhzawadi/phpmyadmin:dev
20 changes: 9 additions & 11 deletions .github/workflows/image-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: install buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Available platforms
run: echo ${{ steps.buildx.outputs.platforms }}
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Prepare
id: prepare
run: |
Expand All @@ -27,7 +24,8 @@ jobs:
- name: login to docker hub
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
- name: build the image
run: |
docker buildx build --push \
--tag "mhzawadi/phpmyadmin:${{ steps.prepare.outputs.version }}" \
--platform linux/amd64,linux/arm/v7,linux/arm64 .
uses: docker/build-push-action@v3
with:
push: true
platforms: linux/amd64,linux/arm64,linux/arm/v7
tags: "mhzawadi/phpmyadmin:${{ steps.prepare.outputs.version }}"
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM alpine:3.16
FROM alpine:3.17
MAINTAINER Matthew Horwood <[email protected]>

# Install required deb packages
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Run phpMyAdmin with Alpine, nginx and PHP FPM.

![GitHub Repo stars](https://img.shields.io/github/stars/mhzawadi/phpmyadmin?style=social)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/mhzawadi/phpmyadmin/build%20our%20image%20for%20latest?label=Docker%20Latest)
[![Latest image](https://github.com/mhzawadi/phpmyadmin/actions/workflows/image-latest.yml/badge.svg)](https://github.com/mhzawadi/phpmyadmin/actions/workflows/image-latest.yml)
![Docker Pulls](https://img.shields.io/docker/pulls/mhzawadi/phpmyadmin.svg)
![Docker Stars](https://img.shields.io/docker/stars/mhzawadi/phpmyadmin.svg)

Expand Down

0 comments on commit a7237dd

Please sign in to comment.