Skip to content

container

container #214

Workflow file for this run

name: container
on:
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: scheme-united
jobs:
container:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
ref: hello-schemer
- name: Log in to the Container registry
uses: docker/login-action@v1
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: Build and push Docker image
uses: docker/build-push-action@v2
with:
context: .
push: true
tags: ghcr.io/amirouche/scheme-united:latest
# TODO test build
# - name: rename
# run: docker tag ghcr.io/scheme-live/schemers:latest ghcr.io/scheme-live/schemers:stable
# - name: push
# run: docker push ghcr.io/scheme-live/schemers:stable