-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,35 @@ | ||
# name: Docker Image CI | ||
name: Docker Image CI | ||
|
||
# on: | ||
# push: | ||
# branches: [main] | ||
# pull_request: | ||
# branches: [main] | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
# jobs: | ||
# build-image: | ||
# runs-on: ubuntu-latest | ||
jobs: | ||
build-image: | ||
runs-on: ubuntu-latest | ||
|
||
# steps: | ||
# - name: Checkout to repository | ||
# uses: actions/checkout@v2 | ||
steps: | ||
- name: Checkout to repository | ||
uses: actions/checkout@v2 | ||
|
||
# - name: Set up Docker Buildx | ||
# uses: docker/setup-buildx-action@v2 | ||
- name: Set up Docker Buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
# - name: Login to GitHub Container Registry | ||
# uses: docker/login-action@v2 | ||
# with: | ||
# registry: ghcr.io | ||
# username: k1g99 | ||
# password: ${{ secrets.CR_PAT }} | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: ghcr.io | ||
username: ${{ github.repository }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# - name: Build and push container image | ||
# uses: docker/build-push-action@v4 | ||
# with: | ||
# context: . | ||
# file: ./Dockerfile | ||
# push: true | ||
# tags: ghcr.io/fgfnet/fnet:latest | ||
# cache-from: type=gha | ||
# cache-to: type=gha,mode=max | ||
- name: Build and push container image | ||
uses: docker/build-push-action@v4 | ||
with: | ||
context: . | ||
file: ./Dockerfile | ||
push: true | ||
tags: ghcr.io/fgfnet/fnet:latest | ||
cache-from: type=gha | ||
cache-to: type=gha,mode=max |