Skip to content

Commit

Permalink
CI 5.0.0.0 on 2023-08-14
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyje committed Aug 14, 2023
1 parent 2989c3a commit 3f645e4
Showing 1 changed file with 4 additions and 59 deletions.
63 changes: 4 additions & 59 deletions .github/workflows/publish-ci-core.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ jobs:
ci:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
contents: write
id-token: write
timeout-minutes: 20
steps:
# Checks out a copy of your repository on the ubuntu-latest machine
Expand All @@ -46,60 +45,6 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2








# https://github.com/docker/login-action#github-packages-docker-registry
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

# https://github.com/docker/metadata-action#about
- name: Docker Metadata (ghcr.io)
id: empty-ci-ghcr-io
uses: docker/metadata-action@v4
with:
images: ghcr.io/jeremyje/empty-ci
tags: |
type=ref,event=branch
type=ref,event=pr
type=semver,pattern={{version}}
type=semver,pattern={{major}}.{{minor}}
labels: |
org.opencontainers.image.title=Continuous Integration
org.opencontainers.image.description=Continuous Integration Image
org.opencontainers.image.vendor=${{ github.actor }}
org.opencontainers.image.authors=${{ github.actor }}
org.opencontainers.image.version=${{ github.run_id }}
org.opencontainers.image.url=${{ github.event.repository.clone_url }}
org.opencontainers.image.source=${{ github.event.repository.clone_url }}
org.opencontainers.image.created=${{ steps.prep.outputs.build_timestamp }}
org.opencontainers.image.revision=${{ github.sha }}
- name: Build and Push to ghcr.io
uses: docker/build-push-action@v4
with:
push: ${{ github.event_name != 'pull_request' }}
platforms: linux/amd64
file: ./empty-ci/Dockerfile
context: .
tags: ${{ steps.empty-ci-ghcr-io.outputs.tags }}
labels: ${{ steps.empty-ci-ghcr-io.outputs.labels }}








# https://github.com/docker/login-action#github-packages-docker-registry
- name: Login to Docker Hub
if: ${{ github.event_name != 'pull_request' }}
Expand Down Expand Up @@ -142,7 +87,7 @@ jobs:

# https://github.com/docker/metadata-action#about
- name: Docker Metadata (ghcr.io)
id: meta-ghcr-io
id: docker-metadata-ghcr-io
uses: docker/metadata-action@v4
with:
images: ghcr.io/jeremyje/ci-core
Expand All @@ -169,5 +114,5 @@ jobs:
platforms: linux/amd64,linux/arm64
file: ./ci-core/Dockerfile
context: .
tags: ${{ steps.meta-ghcr-io.outputs.tags }}
labels: ${{ steps.meta-ghcr-io.outputs.labels }}
tags: ${{ steps.docker-metadata-ghcr-io.outputs.tags }}
labels: ${{ steps.docker-metadata-ghcr-io.outputs.labels }}

0 comments on commit 3f645e4

Please sign in to comment.