Skip to content

Commit

Permalink
fix docker build issue
Browse files Browse the repository at this point in the history
* setup buildx in docker build workflow

* fix unused import bug

* allow docker pipeline to write packages

* fix build error

* [skip ci] docker build on changes to main
  • Loading branch information
m-adawi authored Jul 13, 2024
1 parent 516a11b commit 559993e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/docker-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:

jobs:
docker:
permissions:
packages: write
runs-on: ubuntu-latest
steps:
- name: Login to Docker Hub
Expand All @@ -20,4 +22,4 @@ jobs:
uses: docker/build-push-action@v6
with:
push: true
tags: m-adawi/swarm-cd:latest
tags: ghcr.io/${{ github.actor }}/${{ github.repository }}:latest
1 change: 0 additions & 1 deletion init.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package main
import (
"errors"
"fmt"
"io"
"os"
"path"

Expand Down

0 comments on commit 559993e

Please sign in to comment.