Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Docker Build and Push #6

Docker Build and Push

Docker Build and Push #6

Workflow file for this run

name: Docker Build and Push
on:
push:
tags:
- "*"
permissions:
id-token: write
contents: read
packages: write
actions: read
jobs:
build-and-push:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Set up buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Get tag name
id: get-tag-name
run: echo "tag-name=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
- name: Build and push images
uses: docker/build-push-action@v3
with:
context: .
tags: ghcr.io/hpcslab/cfp-summary:${{ steps.get-tag-name.outputs.tag-name }}
push: true