fix cloud build #5
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: CST General | |
on: | |
push: | |
branches: | |
- 'main' | |
workflow_dispatch: | |
jobs: | |
amd64: | |
runs-on: ubuntu-latest | |
env: | |
DOCKER_BUILDKIT: '1' | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Docker Login | |
uses: docker/login-action@v3 | |
with: | |
username: tanq16 | |
password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | |
- name: Build and Push Image | |
run: | | |
cd images/general | |
docker build -f builder.Dockerfile -t intermediate_builder . | |
docker builder prune -f | |
docker build -f Dockerfile -t tanq16/cst-general:amd . | |
docker push tanq16/cst-general:amd | |
# arm64: | |
# runs-on: ubuntu-latest | |
# env: | |
# DOCKER_BUILDKIT: '1' | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Set up QEMU | |
# uses: docker/setup-qemu-action@v3 | |
# - name: Set up Docker Buildx | |
# uses: docker/setup-buildx-action@v3 | |
# - name: Login to DockerHub | |
# uses: docker/login-action@v3 | |
# with: | |
# username: tanq16 | |
# password: ${{ secrets.DOCKER_ACCESS_TOKEN }} | |
# - run: | | |
# cd images/general | |
# docker buildx build -o type=docker --platform=linux/arm64 -f builder.Dockerfile -t intermediate_builder . | |
# docker builder prune -f | |
# docker buildx build -o type=docker --platform=linux/arm64 -f Dockerfile -t tanq16/cst-general:arm . | |
# docker push tanq16/cst-general:arm |