gh actions: fix ghcr.io ref in push and env vars in irc

This commit is contained in:
Oliver Gorwits
2021-08-21 19:47:52 +01:00
parent 843b8b10f1
commit 74c86c5716

View File

@@ -88,7 +88,7 @@ jobs:
PAUSE_PASSWORD: ${{ secrets.PAUSE_PASSWORD }} PAUSE_PASSWORD: ${{ secrets.PAUSE_PASSWORD }}
run: | run: |
sudo -u netdisco /home/netdisco/bin/localenv ./Build dist sudo -u netdisco /home/netdisco/bin/localenv ./Build dist
sudo -u netdisco /home/netdisco/bin/localenv cpan-upload --user=$PAUSE_USERNAME --password=$PAUSE_PASSWORD App-Netdisco-*.tar.gz sudo -u netdisco /home/netdisco/bin/localenv cpan-upload -u '${{ env.PAUSE_USERNAME }}' -p '${{ env.PAUSE_PASSWORD }}' App-Netdisco-*.tar.gz
continue-on-error: true continue-on-error: true
- name: IRC upload failure notification - name: IRC upload failure notification
@@ -219,8 +219,8 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') if: startsWith(github.ref, 'refs/tags/')
run: | run: |
for image in postgresql backend web do; do for image in postgresql backend web do; do
docker push netdisco/${IMAGE_ROOT}-$image docker push ghcr.io/netdisco/${IMAGE_ROOT}-$image
docker push netdisco/netdisco:latest-$image docker push ghcr.io/netdisco/netdisco:latest-$image
done done
continue-on-error: true continue-on-error: true
@@ -234,7 +234,7 @@ jobs:
channel: '#netdisco' channel: '#netdisco'
nickname: github-actions nickname: github-actions
message: |- message: |-
🤖 Failed to publish containers (release $TAG) 😭 🤖 Failed to publish containers to Docker Hub (release ${{ env.TAG }}) 😭
👀 https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} 👀 https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}
- name: IRC DH upload success notification - name: IRC DH upload success notification
uses: Gottox/irc-message-action@v2 uses: Gottox/irc-message-action@v2
@@ -243,7 +243,7 @@ jobs:
channel: '#netdisco' channel: '#netdisco'
nickname: github-actions nickname: github-actions
message: |- message: |-
🤖 Published containers (release: $TAG) 🎉 🤖 Published containers to Docker Hub (release: ${{ env.TAG }}) 🎉
- name: Setup tmate session - name: Setup tmate session
uses: mxschmitt/action-tmate@v3 uses: mxschmitt/action-tmate@v3