Skip to content

Commit 2514334

Browse files
committed
build using actions
1 parent 10b86b4 commit 2514334

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/docker.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Container Image
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
7+
env:
8+
IMAGE_NAME: fsmi/flat-manager
9+
REGISTRY: ghcr.io
10+
11+
jobs:
12+
push:
13+
runs-on: ubuntu-latest
14+
15+
permissions:
16+
contents: read
17+
packages: write
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v2
22+
23+
- name: Log into registry ${{ env.REGISTRY }}
24+
uses: docker/login-action@v1
25+
with:
26+
registry: ${{ env.REGISTRY }}
27+
username: ${{ github.actor }}
28+
password: ${{ secrets.GITHUB_TOKEN }}
29+
30+
- name: Build and push Docker image
31+
uses: docker/build-push-action@v3

0 commit comments

Comments
 (0)