Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
identw committed Jul 11, 2024
1 parent 9e5e403 commit eb01c4f
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/lalka.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: lalka
concurrency:
group: lalka
cancel-in-progress: true
on:
push:
branches:
- test
jobs:
container_image:
name: container_image
runs-on: ubuntu-latest
outputs:
image: ${{ steps.set-image-name.outputs.image }}
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@master
- name: image name
id: set-image-name
run: |
name="$(echo ${{ github.repository }} | tr 'A-Z' 'a-z')"
echo "image=ghcr.io/$name:${{ github.ref_name }}" >> $GITHUB_OUTPUT
- name: Login to GitHub Container Registry
uses: docker/login-action@master
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push Docker image
uses: docker/build-push-action@master
with:
context: .
push: true
platforms: linux/amd64,linux/arm64
tags: ${{ steps.set-image-name.outputs.image }}
cache-from: type=gha
cache-to: type=gha,mode=max

0 comments on commit eb01c4f

Please sign in to comment.