Skip to content

Commit

Permalink
fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
k1g99 committed Feb 6, 2024
1 parent 59a9c10 commit 3f7996f
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions .github/workflows/docker-image.yml
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

0 comments on commit 3f7996f

Please sign in to comment.