Skip to content

Commit

Permalink
Update docker-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasjanker committed Dec 19, 2023
1 parent ed323b6 commit 3362fe8
Showing 1 changed file with 0 additions and 134 deletions.
134 changes: 0 additions & 134 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,76 +51,6 @@ jobs:
thomasjanker/baikal:experimental-apache
thomasjanker/baikal:experimental
# Get the release version by stripping build metadata from the release name
- name: Parse release tag
if: github.event_name == 'release'
run: echo DOCKER_RELEASE_TAG=${GITHUB_REF_NAME/+*/} >> $GITHUB_ENV

- name: Build and push release image
if: github.event_name == 'release'
uses: docker/build-push-action@v2
with:
file: apache.dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/386
push: true
tags: |
thomasjanker/baikal:${{ env.DOCKER_RELEASE_TAG }}-apache
thomasjanker/baikal:${{ env.DOCKER_RELEASE_TAG }}
thomasjanker/baikal:apache
thomasjanker/baikal:latest
build_apache_php80:
name: Build Apache variant (PHP 8.0)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

# See https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

# See https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

# See https://github.com/docker/login-action
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

# Build Apache httpd images
- name: Build and push experimental image
if: github.event_name == 'push'
uses: docker/build-push-action@v2
with:
file: apache-php8.0.dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/386
push: true
tags: |
thomasjanker/baikal:experimental-apache-php8.0
thomasjanker/baikal:experimental-php8.0
# Get the release version by stripping build metadata from the release name
- name: Parse release tag
if: github.event_name == 'release'
run: echo DOCKER_RELEASE_TAG=${GITHUB_REF_NAME/+*/} >> $GITHUB_ENV

- name: Build and push release image
if: github.event_name == 'release'
uses: docker/build-push-action@v2
with:
file: apache-php8.0.dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/386
push: true
tags: |
thomasjanker/baikal:${{ env.DOCKER_RELEASE_TAG }}-apache-php8.0
thomasjanker/baikal:${{ env.DOCKER_RELEASE_TAG }}-php8.0
thomasjanker/baikal:apache-php8.0
thomasjanker/baikal:latest-php8.0
build_nginx:
name: Build nginx variant
runs-on: ubuntu-latest
Expand Down Expand Up @@ -152,67 +82,3 @@ jobs:
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/386
push: true
tags: thomasjanker/baikal:experimental-nginx

# Get the release version by stripping build metadata from the release name
- name: Parse release tag
if: github.event_name == 'release'
run: echo DOCKER_RELEASE_TAG=${GITHUB_REF_NAME/+*/} >> $GITHUB_ENV

- name: Build and push release image
if: github.event_name == 'release'
uses: docker/build-push-action@v2
with:
file: nginx.dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/386
push: true
tags: |
thomasjanker/baikal:${{ env.DOCKER_RELEASE_TAG }}-nginx
thomasjanker/baikal:nginx
build_nginx_php80:
name: Build nginx variant (PHP 8.0)
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

# See https://github.com/docker/setup-qemu-action
- name: Set up QEMU
uses: docker/setup-qemu-action@v1

# See https://github.com/docker/setup-buildx-action
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

# See https://github.com/docker/login-action
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_PASSWORD }}

# Build nginx images
- name: Build and push experimental image
if: github.event_name == 'push'
uses: docker/build-push-action@v2
with:
file: nginx-php8.0.dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/386
push: true
tags: thomasjanker/baikal:experimental-nginx-php8.0

# Get the release version by stripping build metadata from the release name
- name: Parse release tag
if: github.event_name == 'release'
run: echo DOCKER_RELEASE_TAG=${GITHUB_REF_NAME/+*/} >> $GITHUB_ENV

- name: Build and push release image
if: github.event_name == 'release'
uses: docker/build-push-action@v2
with:
file: nginx-php8.0.dockerfile
platforms: linux/amd64,linux/arm/v7,linux/arm64/v8,linux/386
push: true
tags: |
thomasjanker/baikal:${{ env.DOCKER_RELEASE_TAG }}-nginx-php8.0
thomasjanker/baikal:nginx-php8.0

0 comments on commit 3362fe8

Please sign in to comment.