Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
Woahai321 committed Sep 28, 2024
1 parent a95922e commit 115b2a3
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 125 deletions.
2 changes: 1 addition & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/devcontainers/spec/main/schemas/devContainer.base.schema.json",
"name": "imdb-to-overseerr devContainer",
"name": "list-sync devContainer",
"build": {
"dockerfile": "Dockerfile"
},
Expand Down
88 changes: 40 additions & 48 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
@@ -1,80 +1,72 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]
tags:
- 'v*'
pull_request:
branches: [ "main" ]
workflow_dispatch:
push:
branches: ["main"]
tags:
- "v*"
pull_request:
branches: ["main"]
workflow_dispatch:

jobs:

build:

runs-on: ubuntu-latest

strategy:
fail-fast: true

permissions:
id-token: write
packages: write
contents: read
attestations: write
id-token: write
packages: write
contents: read
attestations: write

steps:
-
name: checkout
- name: checkout
uses: actions/checkout@v4

-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v3

-
name: Set up Docker Buildx

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
with:
install: true
install: true

-
name: Docker metadata
- name: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository_owner }}/imdb-to-overseerr
tags: |
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}}
images: |
ghcr.io/${{ github.repository_owner }}/list-sync
tags: |
type=semver,pattern={{major}}
type=semver,pattern={{major}}.{{minor}}
type=semver,pattern={{version}}
type=edge,branch=main
type=ref,event=branch
type=ref,event=pr
-
name: Login to GitHub Container Registry
type=edge,branch=main
type=ref,event=branch
type=ref,event=pr
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

-
name: Build container
- name: Build container
id: push
uses: docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
# platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/s390x
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: mode=max
sbom: true
context: .
file: ./Dockerfile
# platforms: linux/amd64,linux/arm64,linux/arm/v7,linux/arm/v6,linux/s390x
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
provenance: mode=max
sbom: true
Loading

0 comments on commit 115b2a3

Please sign in to comment.