Skip to content

Commit

Permalink
ci(build): remove manifest creation
Browse files Browse the repository at this point in the history
  • Loading branch information
obviyus committed Jul 26, 2024
1 parent 25e8bb5 commit ef3e7a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 25 deletions.
31 changes: 7 additions & 24 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ jobs:
file: ./Dockerfile
push: true
platforms: linux/amd64
tags: ghcr.io/obviyus/hamverbot:${{ github.sha }}
tags: |
ghcr.io/obviyus/hamverbot:${{ github.sha }}
ghcr.io/obviyus/hamverbot:latest
cache-from: type=gha
cache-to: type=gha,mode=max

Expand Down Expand Up @@ -73,27 +75,8 @@ jobs:
file: ./Dockerfile
push: true
platforms: linux/arm64
tags: ghcr.io/obviyus/hamverbot:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max

create-manifest:
name: Create and Push Multi-Arch Manifest
needs: [publish-amd64, publish-arm64]
runs-on: ubuntu-latest
steps:
- name: Login to GHCR
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Create and push manifest
run: |
docker manifest create ghcr.io/obviyus/hamverbot:latest \
tags: |
ghcr.io/obviyus/hamverbot:${{ github.sha }}
docker manifest annotate ghcr.io/obviyus/hamverbot:latest \
ghcr.io/obviyus/hamverbot:${{ github.sha }} --arch amd64 --os linux
docker manifest annotate ghcr.io/obviyus/hamverbot:latest \
ghcr.io/obviyus/hamverbot:${{ github.sha }} --arch arm64 --os linux
docker manifest push ghcr.io/obviyus/hamverbot:latest
ghcr.io/obviyus/hamverbot:latest
cache-from: type=gha
cache-to: type=gha,mode=max
2 changes: 1 addition & 1 deletion config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ server = "irc.libera.chat"
port = 6697
use_tls = true
encoding = "UTF-8"
channels = ["#f1"]
channels = ["#obviyus"]
umodes = "+RB-x"
user_info = "IRC bot for #f1"
version = "irc:git:Rust"
Expand Down

0 comments on commit ef3e7a4

Please sign in to comment.