mirror of
https://github.com/dockersrc/archlinux
synced 2026-01-27 04:34:36 -05:00
🔧 Updated workflows 🔧
.gitea/workflows/docker.yaml .gitea/workflows/publish.yaml .github/workflows/docker.yaml .github/workflows/publish.yaml
This commit is contained in:
@@ -6,7 +6,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
- master
|
- master
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 * * 1'
|
- cron: '0 2 2 * *'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
@@ -30,6 +30,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
||||||
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
|
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
|
||||||
|
echo "COMMIT_ID=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
@@ -83,3 +84,4 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
docker.io/casjaysdev/archlinux:latest
|
docker.io/casjaysdev/archlinux:latest
|
||||||
docker.io/casjaysdev/archlinux:${{ steps.meta.outputs.DATE_TAG }}
|
docker.io/casjaysdev/archlinux:${{ steps.meta.outputs.DATE_TAG }}
|
||||||
|
docker.io/casjaysdev/archlinux:${{ steps.meta.outputs.COMMIT_ID }}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ on:
|
|||||||
- main
|
- main
|
||||||
- master
|
- master
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 2 * *'
|
- cron: '0 2 * * 1'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push:
|
build-and-push:
|
||||||
@@ -30,6 +30,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
||||||
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
|
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
|
||||||
|
echo "COMMIT_ID=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Login to Docker Hub
|
- name: Login to Docker Hub
|
||||||
uses: docker/login-action@v2
|
uses: docker/login-action@v2
|
||||||
@@ -55,9 +56,8 @@ jobs:
|
|||||||
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
|
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
|
||||||
org.opencontainers.image.url=https://github.com/${{ github.repository }}
|
org.opencontainers.image.url=https://github.com/${{ github.repository }}
|
||||||
org.opencontainers.image.source=https://github.com/${{ github.repository }}
|
org.opencontainers.image.source=https://github.com/${{ github.repository }}
|
||||||
org.opencontainers.image.version=latest
|
org.opencontainers.image.version=base
|
||||||
org.opencontainers.image.revision=${{ github.sha }}
|
org.opencontainers.image.revision=${{ github.sha }}
|
||||||
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
|
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
|
||||||
tags: |
|
tags: |
|
||||||
docker.io/casjaysdev/archlinux:latest
|
docker.io/casjaysdev/archlinux:base
|
||||||
docker.io/casjaysdev/archlinux:${{ steps.meta.outputs.DATE_TAG }}
|
|
||||||
|
|||||||
4
.github/workflows/docker.yaml
vendored
4
.github/workflows/docker.yaml
vendored
@@ -7,7 +7,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 * * 1'
|
- cron: '0 2 2 * *'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -31,6 +31,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
||||||
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
|
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
|
||||||
|
echo "COMMIT_ID=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -84,3 +85,4 @@ jobs:
|
|||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ github.repository }}:latest
|
ghcr.io/${{ github.repository }}:latest
|
||||||
ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.DATE_TAG }}
|
ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.DATE_TAG }}
|
||||||
|
ghcr.io/${{ github.repository }}:${{ steps.meta.outputs.COMMIT_ID }}
|
||||||
|
|||||||
40
.github/workflows/publish.yaml
vendored
40
.github/workflows/publish.yaml
vendored
@@ -1,4 +1,4 @@
|
|||||||
name: .-base
|
name: archlinux-base
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
@@ -7,7 +7,7 @@ on:
|
|||||||
- master
|
- master
|
||||||
pull_request:
|
pull_request:
|
||||||
schedule:
|
schedule:
|
||||||
- cron: '0 2 2 * *'
|
- cron: '0 2 * * 1'
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -31,7 +31,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
echo "BUILD_DATE=$(date +'%Y%m%d%H%M')" >> $GITHUB_OUTPUT
|
||||||
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
|
echo "DATE_TAG=$(date +'%y%m')" >> $GITHUB_OUTPUT
|
||||||
echo "IMAGE_REPO=${GITHUB_REPOSITORY}" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
@@ -43,45 +42,22 @@ jobs:
|
|||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v5
|
uses: docker/build-push-action@v5
|
||||||
with:
|
with:
|
||||||
context: ./.
|
context: .
|
||||||
file: ././Dockerfile.base
|
file: ./Dockerfile.base
|
||||||
platforms: |
|
platforms: |
|
||||||
linux/amd64
|
linux/amd64
|
||||||
linux/arm64
|
linux/arm64
|
||||||
push: ${{ github.event_name != 'pull_request' }}
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
provenance: false
|
provenance: false
|
||||||
build-args: |
|
|
||||||
IMAGE_NAME=.
|
|
||||||
IMAGE_VERSION=latest
|
|
||||||
IMAGE_REPO=${{ steps.meta.outputs.IMAGE_REPO }}
|
|
||||||
PHP_SERVER=.
|
|
||||||
BUILD_DATE=${{ steps.meta.outputs.BUILD_DATE }}
|
|
||||||
BUILD_VERSION=${{ steps.meta.outputs.BUILD_DATE }}
|
|
||||||
PULL_URL=.
|
|
||||||
DISTRO_VERSION=latest
|
|
||||||
CONTAINER_VERSION=
|
|
||||||
TIMEZONE=America/New_York
|
|
||||||
LANGUAGE=en_US.UTF-8
|
|
||||||
PHP_VERSION=system
|
|
||||||
NODE_VERSION=system
|
|
||||||
NODE_MANAGER=system
|
|
||||||
SERVICE_PORT=
|
|
||||||
EXPOSE_PORTS=
|
|
||||||
WWW_ROOT_DIR=/usr/local/share/httpd/default
|
|
||||||
DEFAULT_FILE_DIR=/usr/local/share/template-files
|
|
||||||
DEFAULT_DATA_DIR=/usr/local/share/template-files/data
|
|
||||||
DEFAULT_CONF_DIR=/usr/local/share/template-files/config
|
|
||||||
DEFAULT_TEMPLATE_DIR=/usr/local/share/template-files/defaults
|
|
||||||
annotations: |
|
annotations: |
|
||||||
org.opencontainers.image.title=${{ steps.meta.outputs.IMAGE_REPO }}
|
org.opencontainers.image.title=${{ github.repository }}
|
||||||
org.opencontainers.image.description=Containerized version of ${{ steps.meta.outputs.IMAGE_REPO }}
|
org.opencontainers.image.description=Containerized version of ${{ github.repository }}
|
||||||
org.opencontainers.image.vendor=CasjaysDev
|
org.opencontainers.image.vendor=CasjaysDev
|
||||||
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
|
org.opencontainers.image.authors=CasjaysDev <docker-admin@casjaysdev.pro>
|
||||||
org.opencontainers.image.url=https://github.com/${{ github.repository }}
|
org.opencontainers.image.url=https://github.com/${{ github.repository }}
|
||||||
org.opencontainers.image.source=https://github.com/${{ github.repository }}
|
org.opencontainers.image.source=https://github.com/${{ github.repository }}
|
||||||
org.opencontainers.image.version=latest
|
org.opencontainers.image.version=base
|
||||||
org.opencontainers.image.revision=${{ github.sha }}
|
org.opencontainers.image.revision=${{ github.sha }}
|
||||||
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
|
org.opencontainers.image.created=${{ github.event.head_commit.timestamp }}
|
||||||
tags: |
|
tags: |
|
||||||
ghcr.io/${{ steps.meta.outputs.IMAGE_REPO }}:latest
|
ghcr.io/${{ github.repository }}:base
|
||||||
ghcr.io/${{ steps.meta.outputs.IMAGE_REPO }}:${{ steps.meta.outputs.DATE_TAG }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user