Skip to content

Docker image: ccodwg-update #281

Docker image: ccodwg-update

Docker image: ccodwg-update #281

name: "Docker image: ccodwg-update"
on:
workflow_dispatch
env:
REGISTRY: ghcr.io
CONTEXT: docker/ccodwg-update
IMAGE: ghcr.io/ccodwg/ccodwg-update:latest
jobs:
build-and-push-image:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2.2.1
- name: Log in to the Container registry
uses: docker/login-action@v2.1.0
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GH_PAT_DOCKER }}
- name: Build and push Docker image
uses: docker/build-push-action@v3.2.0
with:
context: ${{ env.CONTEXT }}
push: true
tags: ${{ env.IMAGE }}
secrets: |
"github_token=${{ secrets.GITHUB_TOKEN }}"