mirror of
https://github.com/okhsunrog/vpnhide.git
synced 2026-05-05 18:53:49 +00:00
Simpler approach to lowercasing
Revert adding docker/metadata-action
This commit is contained in:
parent
1f662b0489
commit
e170a6e9df
2 changed files with 13 additions and 18 deletions
13
.github/workflows/ci-image.yml
vendored
13
.github/workflows/ci-image.yml
vendored
|
|
@ -30,19 +30,16 @@ jobs:
|
|||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
images: ghcr.io/${{ github.repository }}/ci
|
||||
tags: type=raw,value=latest
|
||||
- id: img
|
||||
env:
|
||||
REPO: ${{ github.repository }}
|
||||
run: echo "image=ghcr.io/${REPO,,}/ci:latest" >> "$GITHUB_OUTPUT"
|
||||
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v6
|
||||
with:
|
||||
context: .github/docker/ci
|
||||
push: true
|
||||
tags: ${{ steps.meta.outputs.tags }}
|
||||
labels: ${{ steps.meta.outputs.labels }}
|
||||
tags: ${{ steps.img.outputs.image }}
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
|
|
|
|||
18
.github/workflows/ci.yml
vendored
18
.github/workflows/ci.yml
vendored
|
|
@ -15,20 +15,18 @@ jobs:
|
|||
setup:
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
image_name: ${{ steps.meta.outputs.tags }}
|
||||
image: ${{ steps.img.outputs.image }}
|
||||
steps:
|
||||
- name: Extract metadata
|
||||
id: meta
|
||||
uses: docker/metadata-action@v6
|
||||
with:
|
||||
images: ghcr.io/${{ github.repository }}/ci
|
||||
tags: type=raw,value=latest
|
||||
- id: img
|
||||
env:
|
||||
REPO: ${{ github.repository }}
|
||||
run: echo "image=ghcr.io/${REPO,,}/ci:latest" >> "$GITHUB_OUTPUT"
|
||||
|
||||
lint:
|
||||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ needs.setup.outputs.image_name }}
|
||||
image: ${{ needs.setup.outputs.image }}
|
||||
credentials:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
@ -123,7 +121,7 @@ jobs:
|
|||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ needs.setup.outputs.image_name }}
|
||||
image: ${{ needs.setup.outputs.image }}
|
||||
credentials:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
@ -165,7 +163,7 @@ jobs:
|
|||
needs: setup
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: ${{ needs.setup.outputs.image_name }}
|
||||
image: ${{ needs.setup.outputs.image }}
|
||||
credentials:
|
||||
username: ${{ github.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue