Skip to content

Commit

Permalink
run workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
timursaikaliev committed Jun 12, 2024
1 parent e5da1b1 commit f403ead
Showing 1 changed file with 36 additions and 36 deletions.
72 changes: 36 additions & 36 deletions .github/workflows/ci-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,51 +2,51 @@ name: Main CI
on:
push:
branches:
- "master"
- "ci/*"
pull_request:
branches:
- "*"

env:
dockerhub_publish: ${{ secrets.DOCKER_PASS != '' }}
# env:
# dockerhub_publish: ${{ secrets.DOCKER_PASS != '' }}

jobs:

meta:
runs-on: ubuntu-latest
outputs:
container_tags: ${{ steps.docker_action_meta.outputs.tags }}
container_labels: ${{ steps.docker_action_meta.outputs.labels }}
container_buildtime: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.created'] }}
container_version: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.version'] }}
container_revision: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.revision'] }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: false
persist-credentials: false
- name: Docker meta
id: docker_action_meta
uses: docker/[email protected]
with:
images: |
name=ghcr.io/${{ github.repository }}/container
name=andrewgaul/s3proxy,enable=${{ env.dockerhub_publish }}
flavor: |
latest=false
tags: |
type=sha,format=long
type=sha
type=match,pattern=s3proxy-(.*),group=1
type=ref,event=branch
type=ref,event=pr
type=ref,event=tag
labels: |
org.opencontainers.image.licenses=Apache-2.0
# meta:
# runs-on: ubuntu-latest
# outputs:
# container_tags: ${{ steps.docker_action_meta.outputs.tags }}
# container_labels: ${{ steps.docker_action_meta.outputs.labels }}
# container_buildtime: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.created'] }}
# container_version: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.version'] }}
# container_revision: ${{ fromJSON(steps.docker_action_meta.outputs.json).labels['org.opencontainers.image.revision'] }}
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# submodules: false
# persist-credentials: false
# - name: Docker meta
# id: docker_action_meta
# uses: docker/[email protected]
# with:
# images: |
# name=ghcr.io/${{ github.repository }}/container
# name=andrewgaul/s3proxy,enable=${{ env.dockerhub_publish }}
# flavor: |
# latest=false
# tags: |
# type=sha,format=long
# type=sha
# type=match,pattern=s3proxy-(.*),group=1
# type=ref,event=branch
# type=ref,event=pr
# type=ref,event=tag
# labels: |
# org.opencontainers.image.licenses=Apache-2.0
runTests:
runs-on: ubuntu-latest
needs: [meta]
# needs: [meta]
steps:
- uses: actions/checkout@v4
with:
Expand Down

0 comments on commit f403ead

Please sign in to comment.