mirror of
https://github.com/Lissy93/web-check.git
synced 2025-04-29 03:48:23 +02:00
revert: Docker workflow
This commit is contained in:
parent
6773e61a89
commit
f0ec686f23
41
.github/workflows/docker.yml
vendored
41
.github/workflows/docker.yml
vendored
@ -1,10 +1,9 @@
|
|||||||
name: 🐳 Publish Docker Image
|
name: 🐳 Build + Publish Docker Image
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
|
||||||
- master
|
- master
|
||||||
tags:
|
tags:
|
||||||
- '*'
|
- '*'
|
||||||
@ -25,7 +24,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout 🛎️
|
- name: Checkout 🛎️
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Extract tag name 🏷️
|
- name: Extract tag name 🏷️
|
||||||
shell: bash
|
shell: bash
|
||||||
@ -34,36 +33,36 @@ jobs:
|
|||||||
- name: Compute tags 🔖
|
- name: Compute tags 🔖
|
||||||
id: compute-tags
|
id: compute-tags
|
||||||
run: |
|
run: |
|
||||||
if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then
|
if [[ "${{ github.ref }}" == "refs/heads/master" ]]; then
|
||||||
echo "GHCR_TAG=${GHCR_REGISTRY}/${DOCKER_USER}/${IMAGE_NAME}:latest" >> $GITHUB_ENV
|
echo "GHCR_TAG=${GHCR_REGISTRY}/${DOCKER_USER}/${IMAGE_NAME}:latest" >> $GITHUB_ENV
|
||||||
echo "DOCKERHUB_TAG=${DOCKERHUB_REGISTRY}/${DOCKER_USER}/${IMAGE_NAME}:latest" >> $GITHUB_ENV
|
echo "DOCKERHUB_TAG=${DOCKERHUB_REGISTRY}/${DOCKER_USER}/${IMAGE_NAME}:latest" >> $GITHUB_ENV
|
||||||
elif [[ "${{ github.ref }}" == refs/tags/* ]]; then
|
else
|
||||||
echo "GHCR_TAG=${GHCR_REGISTRY}/${DOCKER_USER}/${IMAGE_NAME}:${GIT_TAG}" >> $GITHUB_ENV
|
echo "GHCR_TAG=${GHCR_REGISTRY}/${DOCKER_USER}/${IMAGE_NAME}:${GIT_TAG}" >> $GITHUB_ENV
|
||||||
echo "DOCKERHUB_TAG=${DOCKERHUB_REGISTRY}/${DOCKER_USER}/${IMAGE_NAME}:${GIT_TAG}" >> $GITHUB_ENV
|
echo "DOCKERHUB_TAG=${DOCKERHUB_REGISTRY}/${DOCKER_USER}/${IMAGE_NAME}:${GIT_TAG}" >> $GITHUB_ENV
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Set up QEMU 🐧
|
- name: Set up QEMU 🐧
|
||||||
uses: docker/setup-qemu-action@v3
|
uses: docker/setup-qemu-action@v1
|
||||||
|
|
||||||
- name: Set up Docker Buildx 🐳
|
- name: Set up Docker Buildx 🐳
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v1
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry 🔑
|
- name: Login to GitHub Container Registry 🔑
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.GHCR_REGISTRY }}
|
registry: ${{ env.GHCR_REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Login to DockerHub 🔑
|
- name: Login to DockerHub 🔑
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.DOCKERHUB_REGISTRY }}
|
registry: ${{ env.DOCKERHUB_REGISTRY }}
|
||||||
username: ${{ env.DOCKER_USER }}
|
username: ${{ env.DOCKER_USER }}
|
||||||
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
||||||
|
|
||||||
- name: Build and push Docker images 🛠️
|
- name: Build and push Docker images 🛠️
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v2
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
@ -72,25 +71,3 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
${{ env.GHCR_TAG }}
|
${{ env.GHCR_TAG }}
|
||||||
${{ env.DOCKERHUB_TAG }}
|
${{ env.DOCKERHUB_TAG }}
|
||||||
|
|
||||||
- name: 🗂️ Make Docker Meta
|
|
||||||
id: meta
|
|
||||||
uses: docker/metadata-action@v3
|
|
||||||
with:
|
|
||||||
images: |
|
|
||||||
${{ env.DOCKERHUB_REGISTRY }}/${{ env.DOCKER_USER }}/${{ env.IMAGE_NAME }}
|
|
||||||
${{ env.GHCR_REGISTRY }}/${{ env.DOCKER_USER }}/${{ env.IMAGE_NAME }}
|
|
||||||
tags: |
|
|
||||||
type=ref,event=tag
|
|
||||||
type=semver,pattern={{version}},enable=true
|
|
||||||
type=semver,pattern={{major}}.x
|
|
||||||
type=raw,value=latest
|
|
||||||
flavor: |
|
|
||||||
latest=false
|
|
||||||
labels: |
|
|
||||||
maintainer=Lissy93
|
|
||||||
org.opencontainers.image.title=Web Check
|
|
||||||
org.opencontainers.image.description=Xray Vision for any Website
|
|
||||||
org.opencontainers.image.documentation=https://web-check.xyz
|
|
||||||
org.opencontainers.image.authors=Alicia Sykes
|
|
||||||
org.opencontainers.image.licenses=MIT
|
|
||||||
|
Loading…
Reference in New Issue
Block a user