Add Dockerfiles for Fedora 38, Fedora 39, and CentOS 7 #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Container Release (Debian 11) | |
on: | |
push: | |
branches: | |
- master | |
paths: | |
- "debian-11/Dockerfile" | |
- ".github/workflows/container-release-debian-11.yml" | |
pull_request: | |
branches: | |
- master | |
paths: | |
- "debian-11/Dockerfile" | |
- ".github/workflows/container-release-debian-11.yml" | |
workflow_dispatch: | |
jobs: | |
build-test: | |
name: Container Test Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the code | |
uses: actions/checkout@v4 | |
- name: Run tests | |
working-directory: debian-11 | |
run: | | |
if [ -f docker-compose.test.yml ]; then | |
docker-compose --file docker-compose.test.yml build | |
docker-compose --file docker-compose.test.yml run sut | |
else | |
docker build . --file Dockerfile | |
fi | |
build-release: | |
name: Build and Release | |
runs-on: ubuntu-latest | |
needs: build-test | |
if: github.ref == 'refs/heads/master' && github.event_name == 'push' | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login to Packages Container registry | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
id: docker_build | |
uses: docker/build-push-action@v5 | |
with: | |
platforms: linux/amd64,linux/arm64 | |
push: true | |
file: debian-11/Dockerfile | |
tags: ghcr.io/hspaans/molecule-containers:debian-11 |