Skip to content

Merge pull request #330 from HPCSLab/renovate/docker-login-action-3.x #7

Merge pull request #330 from HPCSLab/renovate/docker-login-action-3.x

Merge pull request #330 from HPCSLab/renovate/docker-login-action-3.x #7

Workflow file for this run

name: Docker Build and Push
on:
push:
branches:
- master
permissions:
id-token: write
contents: read
packages: write
actions: read
jobs:
build-and-push:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up buildx
uses: docker/setup-buildx-action@v2
- name: Login to GitHub Container Registry
uses: docker/#-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push images
uses: docker/build-push-action@v6
with:
context: .
tags: ghcr.io/hpcslab/web:${{ github.sha }}
push: true