mirror of
https://github.com/mpolden/echoip.git
synced 2025-01-12 11:17:25 +01:00
build: Merge jobs as data is not shared between them
This commit is contained in:
parent
2899ca8f39
commit
ffa6674637
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@ -9,6 +9,9 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
||||||
|
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: install go
|
- name: install go
|
||||||
@ -17,17 +20,11 @@ jobs:
|
|||||||
go-version: 1.16
|
go-version: 1.16
|
||||||
- name: build and test
|
- name: build and test
|
||||||
run: make
|
run: make
|
||||||
deploy:
|
|
||||||
if: ${{ github.ref == 'refs/heads/master' }}
|
|
||||||
needs: build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
steps:
|
|
||||||
- name: enable experimental docker features
|
- name: enable experimental docker features
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
run: |
|
run: |
|
||||||
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
|
echo '{"experimental":true}' | sudo tee /etc/docker/daemon.json
|
||||||
sudo service docker restart
|
sudo service docker restart
|
||||||
- name: publish multi-arch docker image
|
- name: publish multi-arch docker image
|
||||||
|
if: ${{ github.ref == 'refs/heads/master' }}
|
||||||
run: make docker-pushx
|
run: make docker-pushx
|
||||||
|
Loading…
Reference in New Issue
Block a user