Browse Source

Add GitHub action for build on push

master
Kenneth Bruen 11 months ago
parent
commit
97e6d78ce6
Signed by: kbruen
GPG Key ID: C1980A470C3EE5B1
  1. 30
      .github/workflows/build-latest-image.yml

30
.github/workflows/build-latest-image.yml

@ -0,0 +1,30 @@
name: Build latest Docker image
on:
push:
branches:
- master
jobs:
docker:
permissions:
contents: read
packages: write
runs-on:
- ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: ghcr.io/${{ github.actor }}/cfr_train_info_telegram_bot:latest
Loading…
Cancel
Save