Skip to content

Build & Push container to GH registry #13

Build & Push container to GH registry

Build & Push container to GH registry #13

name: Build & Push container to GH registry
on:
push:
workflow_dispatch:
permissions:
contents: write
jobs:
build-container:
runs-on: ubuntu-latest
steps:
-
name: Checkout source
uses: actions/checkout@v3
-
name: Login to ghcr.io
uses: docker/login-action@v2
with:
registry: ghcr.io
username: yimura
password: ${{ secrets.PACKAGE_WRITE_TOKEN }}
-
name: Build and push container
uses: docker/build-push-action@v4
with:
push: true
tags: ghcr.io/yimura/lancache-prefill-cron:latest
-
name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: yimura
password: ${{ secrets.DOCKER_TOKEN }}
-
name: Build and push container
uses: docker/build-push-action@v4
with:
push: true
tags: yimura/lancache-prefill-cron:latest