Skip to content

💫Update (Alpine BaseOS Container 3.20.3-armhf) #5

💫Update (Alpine BaseOS Container 3.20.3-armhf)

💫Update (Alpine BaseOS Container 3.20.3-armhf) #5

name: Pull Alpine BaseOS Container - armhf
on:
push:
paths:
- 'alpine/armhf/last_version.txt'
workflow_dispatch:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: ✔️ Checkout Repository
uses: actions/checkout@v4.1.1
- name: 🔧 Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: ⏬ Download Alpine MinirootFS
run: |
URL_BASE="https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/armhf/"
OS_VERSION="alpine-minirootfs-"
OS_TYPE="-armhf"
EXT=".tar.gz"
LAST_VERSION="$(curl -s https://raw.githubusercontent.com/AtomyCloud/docker-images/main/alpine/armhf/last_version.txt | tail -n 1)"
URL="${URL_BASE}${OS_VERSION}${LAST_VERSION}${OS_TYPE}${EXT}"
FILE="${OS_VERSION}${LAST_VERSION}${OS_TYPE}${EXT}"
DOCKER_HUB_REPO="atomycloud/os:"
TAG_VERSION="${DOCKER_HUB_REPO}${OS_VERSION}${LAST_VERSION}${OS_TYPE}"
curl -L -O $URL
- name: 🔒️ DockerHub Login
uses: docker/#-action@v3.0.0
with:
username: ${{secrets.DOCKERHUB_USER}}
password: ${{secrets.DOCKERHUB_PWD}}
- name: 🆗 Import Docker Image, Tag Docker Image && Push Docker Image
run: |
URL_BASE="https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/armhf/"
OS_VERSION="alpine-minirootfs-"
OS_TYPE="-armhf"
EXT=".tar.gz"
LAST_VERSION="$(curl -s https://raw.githubusercontent.com/AtomyCloud/docker-images/main/alpine/armhf/last_version.txt | tail -n 1)"
URL="${URL_BASE}${OS_VERSION}${LAST_VERSION}${OS_TYPE}${EXT}"
FILE="${OS_VERSION}${LAST_VERSION}${OS_TYPE}${EXT}"
DOCKER_HUB_REPO="atomycloud/os:"
TAG_VERSION="${DOCKER_HUB_REPO}${OS_VERSION}${LAST_VERSION}${OS_TYPE}"
docker image import "$FILE" "$TAG_VERSION"
docker push "$TAG_VERSION"