test ci #7
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 Image CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Build and export | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
tags: myimage:latest | |
outputs: type=docker,dest=/tmp/myimage.tar | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: myimage | |
path: /tmp/myimage.tar | |
use: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: myimage | |
path: /tmp | |
- name: Load image | |
run: | | |
docker load --input /tmp/myimage.tar | |
docker image ls -a | |
docker exec myimage rabbitmq-plugins enable rabbitmq_stream_management rabbitmq_amqp1_0 | |