github actions #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Images Build | |
on: | |
push: | |
# schedule: | |
# - cron: '0 3 * * *' | |
jobs: | |
build_archlinux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build | |
uses: ./.github/actions/build-push-image | |
with: | |
imgname: archlinux | |
build_cuda: false | |
dockerhub_token_user: ${{ secrets.DOCKERHUB_TOKEN_USER }} | |
dockerhub_token: ${{ secrets.DOCKERHUB_TOKEN }} | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# - name: Set up Docker Buildx | |
# uses: docker/setup-buildx-action@v3 | |
# - name: Login to Docker hub | |
# uses: docker/login-action@v3 | |
# with: | |
# username: ${{ secrets.DOCKERHUB_TOKEN_USER }} | |
# password: ${{ secrets.DOCKERHUB_TOKEN }} | |
# - name: Build and push archlinux | |
# run: | | |
# TODAY=$(date +'%Y-%m-%d') | |
# cd dockerfiles | |
# for imgname in archlinux ; do | |
# docker build -f Dockerfile.${imgname} --no-cache --platform linux/amd64 --push \ | |
# -t "iterait/${imgname}:${TODAY}" -t "iterait/${imgname}:latest" \ | |
# -t "iterait/${imgname}:cuda_${TODAY}" -t "iterait/${imgname}:cuda" \ | |
# --build-arg tag="cuda" --squash . | |
# done | |
# build_and_push_images: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Build and push Docker images | |
# run: | | |
# TODAY=$(date +'%Y-%m-%d') | |
# for imgname in archlinux archlinux-dev tensorflow; do | |
# docker buildx build -f Dockerfile.${imgname} --no-cache --platform linux/amd64 --push \ | |
# -t "iterait/${imgname}:${TODAY}" -t "iterait/${imgname}:latest" \ | |
# -t "iterait/${imgname}:cuda_${TODAY}" -t "iterait/${imgname}:cuda" \ | |
# --build-arg tag="cuda" --squash . | |
# done | |
# env: | |
# CIRCLE_BRANCH: ${{ github.ref }} | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |