Skip to content

psc-spack-ubuntu-20.04: check version #20

psc-spack-ubuntu-20.04: check version

psc-spack-ubuntu-20.04: check version #20

Workflow file for this run

name: psc-cpp-ubuntu-20.04 build and push to GHCR
on:
push:
branches: [ main ]
jobs:
psc-cpp-ubuntu-20-04:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v1
- name: Cache Docker layers
uses: actions/cache@v4
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Login to ghcr
if: github.event_name != 'pull_request'
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
context: .
file: docker/psc-cpp-ubuntu-20.04/Dockerfile
builder: ${{ steps.buildx.outputs.name }}
push: true
tags: ghcr.io/psc-code/psc-cpp-ubuntu-20.04:latest
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}