Update rockylinux/rockylinux Docker tag to v10 #1
This file contains hidden or 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: Build Containers on PR | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '*/Dockerfile' | |
- '*/VERSION' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
container: | |
- stn-deploy-2025.1 | |
- stn-deploy-2024.2 | |
- stn-deploy-2024.1 | |
#- stn-deploy-master | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Read VERSION file | |
id: version | |
run: echo "::set-output name=version::$(cat ${{ matrix.container }}/VERSION)" | |
- name: Build Docker image | |
uses: docker/build-push-action@v6 | |
with: | |
context: ${{ matrix.container }} | |
file: ${{ matrix.container }}/Dockerfile | |
load: true # Important: 'load' is set to true instead of 'push' | |
tags: ghcr.io/stackers-network/${{ matrix.container }}:${{ steps.version.outputs.version }} |