Build docker gcc/clang 7 #2
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 docker gcc/clang 7 | |
on: | |
# workflow_dispatch - manual start build from action menu | |
workflow_dispatch: | |
jobs: | |
dev-images: | |
runs-on: ubuntu-latest | |
steps: | |
- name: 'Login to GitHub Container Registry' | |
uses: docker/login-action@v3 | |
with: | |
registry: ghcr.io | |
username: ${{ secrets.PACKAGES_GITHUB_USER }} | |
password: ${{ secrets.PACKAGES_GITHUB_TOKEN }} | |
- name: Build and push base image | |
uses: docker/build-push-action@v6 | |
with: | |
file: ./dev-images/Dockerfile.gcc-clang7 | |
push: true | |
tags: ghcr.io/colorer/gcc7-clang7:latest | |
cache-from: type=registry,ref=ghcr.io/colorer/gcc7-clang7:latest | |
cache-to: type=inline |