Skip to content

team_c_1

team_c_1 #5

Workflow file for this run

name: team_c_1
# Controls when the workflow will run
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
env:
IMAGE_NAME: ghcr.io/${{github.repository_owner}}/${{ github.repository }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build-image:
name: build image
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
#password: ${{ secrets.REGISTRY_PAT }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: |
${{ env.REGISTRY }}/${{env.IMAGE_NAME}}:${{github.run_number}}
${{ env.REGISTRY }}/${{env.IMAGE_NAME}}:latest