Skip to content

Commit f2f2ec2

Browse files
committed
created gh actions simple file
1 parent d305b42 commit f2f2ec2

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: ci
2+
3+
on: push
4+
5+
jobs:
6+
docker:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Set up QEMU
10+
uses: docker/setup-qemu-action@v2
11+
12+
- name: Set up Docker Buildx
13+
uses: docker/setup-buildx-action@v2
14+
15+
- name: Login to GitHub Container Registry
16+
uses: docker/login-action@v2
17+
with:
18+
registry: ghcr.io
19+
username: ${{ github.repository_owner }}
20+
password: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- name: Read image identifiers
23+
id: image
24+
uses: ASzc/change-string-case-action@v1
25+
with:
26+
string: ${{ github.repository }}
27+
28+
- name: Build and push
29+
uses: docker/build-push-action@v3
30+
with:
31+
push: true
32+
tags: |
33+
ghcr.io/${{ steps.image.outputs.lowercase }}:latest
34+
ghcr.io/${{ steps.image.outputs.lowercase }}:${{ github.sha }}
35+

0 commit comments

Comments
 (0)