Skip to content

chore: insecureなしに #91

chore: insecureなしに

chore: insecureなしに #91

Workflow file for this run

name: Docker Build and Push
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build Docker image
run: docker build -t ${{ secrets.K8S_DOCKER_REGISTHOST }}/mediawiki:latest .
id: build
- name: Save Docker image to file
run: docker save ${{ secrets.K8S_DOCKER_REGISTHOST }}/mediawiki:latest -o mediawiki_latest.tar
- name: Upload Docker image as artifact
uses: actions/upload-artifact@v4
with:
name: mediawiki-image
path: mediawiki_latest.tar
push:
runs-on: ubuntu-latest
needs: build
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Download Docker image artifact
uses: actions/download-artifact@v4
with:
name: mediawiki-image
path: .
- name: Load Docker image from file
run: docker load -i mediawiki_latest.tar
- name: Push Docker image
run: docker push ${{ secrets.K8S_DOCKER_REGISTHOST }}/mediawiki:latest